-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathTestNMICallback.inf
87 lines (67 loc) · 2.44 KB
/
TestNMICallback.inf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
;
; TestNMICallback.inf
;
[Version]
Signature="$WINDOWS NT$"
Class=Sample ; TODO: edit Class
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171} ; TODO: edit ClassGuid
Provider=%ManufacturerName%
CatalogFile=TestNMICallback.cat
DriverVer= ; TODO: set DriverVer in stampinf property pages
PnpLockDown=1
[DestinationDirs]
DefaultDestDir = 12
TestNMICallback_Device_CoInstaller_CopyFiles = 11
; ================= Class section =====================
[ClassInstall32]
Addreg=SampleClassReg
[SampleClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5
[SourceDisksNames]
1 = %DiskName%,,,""
[SourceDisksFiles]
TestNMICallback.sys = 1,,
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames
;*****************************************
; Install Section
;*****************************************
[Manufacturer]
%ManufacturerName%=Standard,NT$ARCH$
[Standard.NT$ARCH$]
%TestNMICallback.DeviceDesc%=TestNMICallback_Device, Root\TestNMICallback ; TODO: edit hw-id
[TestNMICallback_Device.NT]
CopyFiles=Drivers_Dir
[Drivers_Dir]
TestNMICallback.sys
;-------------- Service installation
[TestNMICallback_Device.NT.Services]
AddService = TestNMICallback,%SPSVCINST_ASSOCSERVICE%, TestNMICallback_Service_Inst
; -------------- TestNMICallback driver install sections
[TestNMICallback_Service_Inst]
DisplayName = %TestNMICallback.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\TestNMICallback.sys
;
;--- TestNMICallback_Device Coinstaller installation ------
;
[TestNMICallback_Device.NT.CoInstallers]
AddReg=TestNMICallback_Device_CoInstaller_AddReg
CopyFiles=TestNMICallback_Device_CoInstaller_CopyFiles
[TestNMICallback_Device_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"
[TestNMICallback_Device_CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll
[TestNMICallback_Device.NT.Wdf]
KmdfService = TestNMICallback, TestNMICallback_wdfsect
[TestNMICallback_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$
[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="<Your manufacturer name>" ;TODO: Replace with your manufacturer name
ClassName="Samples" ; TODO: edit ClassName
DiskName = "TestNMICallback Installation Disk"
TestNMICallback.DeviceDesc = "TestNMICallback Device"
TestNMICallback.SVCDESC = "TestNMICallback Service"