summaryrefslogtreecommitdiff
path: root/simbatt/func/simbatt-wdfcoinstall.inx
blob: 15c596abb9bae7fe3e9365c76cfe5520ad358f27 (plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
;/*++
;
;Copyright (c) Microsoft Corporation All rights Reserved
;
;Module Name:
;
;    simbatt.inf
;
;Abstract:
;
;    INF file for installing Simulated Battery WDF driver.
;    
;    N.B. Search the file for TODO comments and make necessary changes to make
;         this INF file functional. 
;
;    N.B. Place the WdfCoInstaller files in the same directory as this file to 
;         make this INF file functional.
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=Battery
ClassGuid={72631e54-78a4-11d0-bcf7-00aa00b7b32a}
Provider=%ProviderName%
DriverVer=04/30/2008, 6.01.6598
CatalogFile=simbatt-wdfcoinstall.cat           ; TODO: Add a signed catalog file
PnpLockdown=1

[DestinationDirs]
DefaultDestDir = 12
SimBatt_Device_CoInstaller_CopyFiles = 11

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
simbatt.sys = 1
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll = 1

;*****************************************
; Simulated Battery Install Section
;*****************************************

[Manufacturer]
%StdMfg%=Standard,NT$ARCH$

[Standard.NT$ARCH$]
%SimBatt.DeviceDesc% = SimBatt_Device,{6B34C467-CE1F-4c0d-A3E4-F98A5718A9D6}\SimBatt

[SimBatt_Device.NT]
CopyFiles=SimBatt_Device_Drivers
Include=battery.inf
Needs=Battery_Inst

[SimBatt_Device.NT.HW]
AddReg=SimBatt_Device.NT.AddReg

[SimBatt_Device.NT.AddReg]
HKR,,Security,,"D:P(A;;GA;;;AU)(A;;GA;;;S-1-15-2-1)"  ; Allow generic-all users and appcontainers

[SimBatt_Device_Drivers]
simbatt.sys

;-------------- Service installation

[SimBatt_Device.NT.Services]
AddService = simbatt,%SPSVCINST_ASSOCSERVICE%,SimBatt_Service_Inst

; -------------- simbatt driver install sections

[SimBatt_Service_Inst]
DisplayName    = %SimBatt.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\simbatt.sys

;*****************************************
; WDF CoInstaller
;*****************************************

[SimBatt_Device.NT.CoInstallers]
AddReg=SimBatt_Device_CoInstaller_AddReg
CopyFiles=SimBatt_Device_CoInstaller_CopyFiles

[SimBatt_Device_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"

[SimBatt_Device_CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll

[SimBatt_Device.NT.Wdf]
KmdfService = SimBatt, SimBatt_wdfsect

[SimBatt_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$

;*****************************************
; Literals
;*****************************************

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ProviderName = "TODO-Set-Provider"
StdMfg = "TODO-Set-Manufacturer"
DiskId1 = "Simulated Battery Installation Disk"
SimBatt.DeviceDesc = "Simulated Battery"
SimBatt.SVCDESC = "Simulated Battery"