setup.rul
来自「微狗(UMI/UMC/PMH/PMI)驱动安装程序是安装在 Windows 9X」· RUL 代码 · 共 64 行
RUL
64 行
/*
----------------------------------------------------------------------
Sample Using Installshield Calls RCMicroDogSetup.dll To Install Drivers
----------------------------------------------------------------------
*/
#include "ifx.h"
NUMBER Parameter1;
NUMBER status;
NUMBER DriverInfo;
//this is the interface declaration of DLL
prototype NUMBER RCMicroDogSetup.InstDriver(NUMBER);
prototype NUMBER RCMicroDogSetup.UninstallDriver(NUMBER);
prototype NUMBER RCMicroDogSetup.GetDogDriverInfo();
prototype RCMicroDogSetup.DriverDialog();
prototype RCMicroDogSetup.NotifyPullOutAndPlugInUsbDog(NUMBER);
program
status=UseDLL("c:\\MicroDog\\driver\\RCMicroDogSetUp.DLL");
if(status!=0) then
UnUseDLL("RCMicroDogSetUp.DLL");
abort;
else
DriverInfo = GetDogDriverInfo();
//You can use the value of DriverInfo to get the version of dog's driver
//DriverInfo = 0 means that Not find the dog's driver
//DriverInfo = 1 means that find the same version USBDog and ParallelDog driver
//DriverInfo = 2 means that find the same version USBDog driver only
//DriverInfo = 3 means that find the same version ParallelDog driver only
//DriverInfo = 4 means that find the older version USBDog and ParallelDog driver
//DriverInfo = 5 means that find the older version USBDog driver only
//DriverInfo = 6 means that find the older version ParallelDog driver only
//DriverInfo = 7 means that find the newer version USBDog and ParallelDog driver
//DriverInfo = 8 means that find the newer version USBDog driver only
//DriverInfo = 9 means that find the newer version ParallelDog driver only
//DriverInfo =3008 means that the current user is not administrator
//Parameter1:
//1: uninstall USB dog driver 2: uninstall Parallel dog driver 3: uninstall both USB dog driver and Parallel dog driver
status=UninstallDriver(Parameter1);
//if (status != 0) means uninstall failed!
//Display the Driver Install Interface
DriverDialog();
//If you want to display the information "If you have plugged in the USB Hardware,
//please pull out it and plug in it again!" in Windows 98/ME,you should use 1,else
//use 0 or don't call NotifyPullOutAndPlugInUsbDog
Parameter1=1;
NotifyPullOutAndPlugInUsbDog(Parameter1);
// Not dispaly the driver install interface
//Parameter1: 1 install USB dog driver 2 install Parallel dog driver 3 install both USB dog driver and Parallel dog driver
Parameter1=3;
status=InstDriver(Parameter1);
//if (status != 0) means install failed!
UnUseDLL("RCMicroDogSetUp.DLL");
endif;
endprogram
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?