資源簡介
最新加密狗驅動程序,支持WindowsXP、Windows7、Windows10。串口、并口。

代碼片段和文件信息
/****************************************************************************
????PROGRAM:?DOGDEMO
????PURPOSE:?This?application?demonstrates?how?to?load?dogsetup.dll?to?install
?????????the?dog?driver???????????
????Copyright?(C)?SafeNet?China?Ltd.?All?Rights?Reserved.
****************************************************************************/
#include?“windows.h“ ????/*?required?for?all?Windows?applications?*/
#include?“string.h“
#include?“stdio.h“
#include?“dogdemo.h“????????????????/*?specific?to?this?program??????????????*/
#include?“resource.h“
#include?“gsmh.h“
#define?INSTALL_ONLY_USB_DOG_DRVIER 1
#define?INSTALL_ONLY_PARALLEL_DOG_DRVIER 2
#define?INSTALL_ALL_DOG_DRVIER 3
#define?UNINSTALL_ONLY_USB_DOG_DRVIER 1
#define?UNINSTALL_ONLY_PARALLEL_DOG_DRVIER 2
#define?UNINSTALL_ALL_DOG_DRVIER 3
HANDLE?hInst;
/****************************************************************************
????FUNCTION:?WinMain(HANDLE?HANDLE?LPSTR?int)
****************************************************************************/
int?PASCAL?WinMain(HANDLE?hInstance?HANDLE?hPrevInstance?LPSTR?lpCmdLine?int?nCmdShow)
{
????DLGPROC?lpDialogProc;
HINSTANCE?mlib;
static?char?IniFileName[128];
static?char?Message[100];
static?char?inBuffer[10];
static?char?brun[]=“haverun“;
????HANDLE?hMutex;
????hMutex=CreateMutex(
??NULL??//?SD
??TRUE???????????????????????//?initial?owner
??brun????????????????????????????//?object?name
);
????if(GetLastError()==ERROR_ALREADY_EXISTS?)
{
????
????MessageBox(NULL“another?process?is?running?!““please?waiting“MB_OK);
?return?0;
}
mlib?=?LoadLibrary(TEXT(“DOGSETUP.dll“));
????if(mlib?!=?NULL)
??(FARPROC)InstDriver?=?GetProcAddress(mlib?“InstDriver“);
else
{
??MessageBox(NULL“DOGSETUP.DLL?not?found!““Error“MB_OK);
??return?0;
}
????hInst?=?hInstance;
????lpDialogProc?=?MakeProcInstance(DemoDlg?hInstance);
if?(strstr((char*)lpCmdLine“/?“)!=NULL)//display?the?command?line?help
{
MessageBox(NULL“Command?Line?Help(Not?distinguish?capital?or?lowercase)\n/??Display?the?command?line?help!\n/i?Not?Display?the?interface?of?installation!\n/s?Not?diaplay?any?information?about?installation!\n\nFor?example:\nDoginst?/i/s?Not?display?any?information?in?the?process?of?installation!\n\n““Hint“MB_OK);
return?FALSE;
}
else?if(strstr((char*)lpCmdLine“/i“)!=NULL||strstr((char*)lpCmdLine“/I“)!=NULL)//Not?display?the?interface?of?installation
{
//if?you?want?only?install?the?USB?driver?or?Paralle?driver?you?can?use?other?Micro.
//for?example?
//INSTALL_ONLY_USB_DOG_DRVIER
//INSTALL_ONLY_PARALLEL_DOG_DRVIER
int?retcode?=?InstDriver(INSTALL_ALL_DOG_DRVIER);?
if(strstr((char*)lpCmdLine“/s“)!=NULL||strstr((char*)lpCmdLine“/S“)!=NULL)//Not?display?any?information?in?the?process?of?installation
{
return?0;
}
if(retcode?==?0)
{
MessageBox(NULL“Th
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1930??2007-10-26?13:45??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\DELPHI\MAINFRM.dfm
?????文件???????6973??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\DELPHI\MAINFRM.PAS
?????文件????????192??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\DELPHI\Project1.dpr
?????文件?????386560??2007-10-26?14:18??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\DELPHI\Project1.exe
?????文件????????876??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\DELPHI\Project1.res
?????文件???????2367??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\installshield\Setup.rul
?????文件??????48128??2007-10-26?14:11??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\pb\dogsetup.exe
?????文件??????34816??2007-10-26?14:11??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\pb\EXAM.pbl
?????文件???????4879??2013-01-07?10:43??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\readme-chn.txt
?????文件???????6590??2013-01-07?10:44??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\readme-eng.txt
?????文件?????216480??2013-01-04?13:56??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\SoftDogInstdrv.exe
?????文件????2526624??2013-01-07?10:33??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\SoftDogSetup.dll
?????文件????????368??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VB\declare.bas
?????文件???????6150??2007-10-26?13:37??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VB\dogsetup.frm
?????文件????????700??2007-10-26?13:37??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VB\Dogsetup.vbp
?????文件??????28672??2007-10-26?13:38??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VB\vbsetup.exe
?????文件??????13787??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\Dogdemo.c
?????文件???????1429??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\Dogdemo.clw
?????文件???????2281??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\Dogdemo.cpp
?????文件????????383??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\Dogdemo.dep
?????文件???????4207??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\Dogdemo.dsp
?????文件????????539??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\Dogdemo.dsw
?????文件???????1335??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\Dogdemo.h
?????文件???????5939??2007-10-26?13:27??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\Dogdemo.rc
?????文件??????10658??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\DogdemoDlg.cpp
?????文件???????1977??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\DogdemoDlg.h
?????文件??????20480??2007-10-26?13:27??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\DogInst.exe
?????文件????????404??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\Gsmh.h
?????文件???????1078??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\res\Dogdemo.ico
?????文件????????399??2004-04-22?13:58??SoftDog最新驅動\SoftDog_Driver_4.1.0.1\VC\res\Dogdemo.rc2
............此處省略15個文件信息
評論
共有 條評論