forked from BestBurning/kmclass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kmclass.inf
86 lines (66 loc) · 2.19 KB
/
kmclass.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
;
; kmclass.inf
;
[Version]
Signature="$WINDOWS NT$"
Class=Sample ; TODO: edit Class
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171} ; TODO: edit ClassGuid
Provider=%ManufacturerName%
CatalogFile=kmclass.cat
DriverVer= ; TODO: set DriverVer in stampinf property pages
[DestinationDirs]
DefaultDestDir = 12
kmclass_Device_CoInstaller_CopyFiles = 11
; ================= Class section =====================
[ClassInstall32]
Addreg=SampleClassReg
[SampleClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5
[SourceDisksNames]
1 = %DiskName%,,,""
[SourceDisksFiles]
kmclass.sys = 1,,
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames
;*****************************************
; Install Section
;*****************************************
[Manufacturer]
%ManufacturerName%=Standard,NT$ARCH$
[Standard.NT$ARCH$]
%kmclass.DeviceDesc%=kmclass_Device, Root\kmclass ; TODO: edit hw-id
[kmclass_Device.NT]
CopyFiles=Drivers_Dir
[Drivers_Dir]
kmclass.sys
;-------------- Service installation
[kmclass_Device.NT.Services]
AddService = kmclass,%SPSVCINST_ASSOCSERVICE%, kmclass_Service_Inst
; -------------- kmclass driver install sections
[kmclass_Service_Inst]
DisplayName = %kmclass.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\kmclass.sys
;
;--- kmclass_Device Coinstaller installation ------
;
[kmclass_Device.NT.CoInstallers]
AddReg=kmclass_Device_CoInstaller_AddReg
CopyFiles=kmclass_Device_CoInstaller_CopyFiles
[kmclass_Device_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"
[kmclass_Device_CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll
[kmclass_Device.NT.Wdf]
KmdfService = kmclass, kmclass_wdfsect
[kmclass_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$
[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="<Your manufacturer name>" ;TODO: Replace with your manufacturer name
ClassName="Samples" ; TODO: edit ClassName
DiskName = "kmclass Installation Disk"
kmclass.DeviceDesc = "kmclass Device"
kmclass.SVCDESC = "kmclass Service"