-
大小: 659KB文件類型: .rar金幣: 2下載: 0 次發布日期: 2021-06-12
- 語言: 其他
- 標簽:
資源簡介
safenet 的軟狗softdog最新驅動,支持win7-64位系統

代碼片段和文件信息
/****************************************************************************
????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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1922??2011-06-14?12:00??Driver\DELPHI\MAINFRM.dfm
?????文件???????6960??2011-06-14?12:00??Driver\DELPHI\MAINFRM.PAS
?????文件????????205??2011-06-14?12:00??Driver\DELPHI\Project.dpr
?????文件???????4486??2011-06-14?12:00??Driver\DELPHI\Project.dproj
?????文件????????876??2011-06-14?12:00??Driver\DELPHI\Project.res
?????文件????????404??2011-06-14?12:00??Driver\DELPHI\uac.RES
?????文件???????3462??2011-06-14?12:00??Driver\readme-chn.txt
?????文件???????5793??2011-06-14?12:00??Driver\readme-eng.txt
?????文件?????214560??2011-06-14?12:00??Driver\SoftDogInstdrv.exe
?????文件????2483744??2011-06-14?12:00??Driver\SoftDogSetup.dll
?????文件????????368??2011-06-14?12:00??Driver\VB\declare.bas
?????文件???????6273??2011-06-14?12:00??Driver\VB\Project.frm
?????文件????????934??2011-06-14?12:00??Driver\VB\Project.vbp
?????文件????????404??2011-06-14?12:00??Driver\VB\uac.RES
?????文件??????13787??2011-06-14?12:00??Driver\VC\Dogdemo.c
?????文件???????2281??2011-06-14?12:00??Driver\VC\Dogdemo.cpp
?????文件???????4321??2011-06-14?12:00??Driver\VC\Dogdemo.dsp
?????文件????????539??2011-06-14?12:00??Driver\VC\Dogdemo.dsw
?????文件???????1335??2011-06-14?12:00??Driver\VC\Dogdemo.h
?????文件???????6331??2011-06-14?12:00??Driver\VC\Dogdemo.rc
?????文件??????10658??2011-06-14?12:00??Driver\VC\DogdemoDlg.cpp
?????文件???????1977??2011-06-14?12:00??Driver\VC\DogdemoDlg.h
?????文件????????404??2011-06-14?12:00??Driver\VC\Gsmh.h
?????文件???????1078??2011-06-14?12:00??Driver\VC\res\Dogdemo.ico
?????文件????????399??2011-06-14?12:00??Driver\VC\res\Dogdemo.rc2
?????文件????????869??2011-06-14?12:00??Driver\VC\Resource.h
?????文件????????105??2011-06-14?12:00??Driver\VC\resrc1.h
?????文件????????209??2011-06-14?12:00??Driver\VC\StdAfx.cpp
?????文件???????1054??2011-06-14?12:00??Driver\VC\StdAfx.h
?????目錄??????????0??2011-07-11?16:53??Driver\VC\res
............此處省略7個文件信息
- 上一篇:CoreData數據庫操作和版本管理
- 下一篇:ffmpeg h264 解碼動態庫
評論
共有 條評論