Hmmm, it sounds like not handling the stop/remove events should be fine then.
Here’s my inf file in its entirety:
; ‘RTDGPD.inf’ file for the RTD RTDGPD driver
[Version]
Signature=“$WINDOWS NT$”
Class=RTD dataModules
ClassGUID={A2CB91F8-D73C-406D-89E1-410F905F97BB}
Provider=%Provider%
DriverVer=05/01/2007,1.0.0.17584
[DestinationDirs]
DefaultDestDir = 12
RTDGPD_Device_CoInstaller_CopyFiles = 11
; ================= Class section =====================
[ClassInstall32]
Addreg=RTDGPD_ClassReg
[RTDGPD_ClassReg]
HKR,0,%ClassName%
HKR,Icon,-5
HKR,DeviceCharacteristics,0x10001,0x100 ;Use same security checks on relative opens
HKR,Security,“D:P(A;;GA;;;SY)(A;;GA;;;BA)” ;Allow generic all access to system and built-in Admin.
;This one overrides the security set by the driver
;*****************************************
; RTDGPD Device Install Section
;*****************************************
[Manufacturer]
%MfgName%=Standard,NT$ARCH$
; For Win2K
[Standard]
; DisplayName Section DeviceId
; ----------- ------- --------
%RTDGPDDevice.DeviceDesc%=RTDGPD_Device, PCI\VEN_1435&DEV_7820
; For XP and later
[Standard.NT$ARCH$]
%RTDGPDDevice.DeviceDesc%=RTDGPD_Device, PCI\VEN_1435&DEV_7820
[RTDGPD_Device.NT]
CopyFiles=RTDGPD_Device.NT.Copy
[RTDGPD_Device.NT.Copy]
RTDGPD.sys
;-------------- Service installation
[RTDGPD_Device.NT.Services]
AddService = RTDGPD, %SPSVCINST_ASSOCSERVICE%, RTDGPD_Service_Inst
[RTDGPD_Service_Inst]
DisplayName = %RTDGPD.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\RTDGPD.sys
LoadOrderGroup = Extended Base
[SourceDisksNames]
1 = %DiskId1%,“”
[SourceDisksFiles]
RTDGPD.sys = 1,
;
;— WDF Coinstaller installation ------
;
[RTDGPD_Device.NT.CoInstallers]
AddReg=RTDGPD_Device_CoInstaller_AddReg
CopyFiles=RTDGPD_Device_CoInstaller_CopyFiles
[RTDGPD_Device_CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000, “wdfcoinstaller01001.dll,WdfCoInstaller”
[RTDGPD_Device_CoInstaller_CopyFiles]
wdfcoinstaller01001.dll
[SourceDisksFiles]
wdfcoinstaller01001.dll=1 ; make sure the number matches with SourceDisksNames
[RTDGPD_Device.NT.Wdf]
KmdfService = RTDGPD, RTDGPD_wdfsect
[RTDGPD_wdfsect]
KmdfLibraryVersion = 1.1
[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
Provider = “RTD Embedded Technologies, Inc.”
MfgName = “RTD Embedded Technologies, Inc.”
ClassName = “RTD dataModules”
DiskId1 = “RTDGPD Device Installation Disk #1”
RTDGPDDevice.DeviceDesc = “RTD RTDGPD Device”
RTDGPD.SVCDESC = “RTDGPD Device Driver”
Thanks,
Josh