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
|
;/*++
;
;Copyright (c) Microsoft Corporation. All rights reserved.
;
;Module Name:
; wdfsimpleum.INF
;
;Abstract:
; INF file for installing the UMDF2 Toaster Driver
;
;Installation Notes:
; Using Devcon: Type "devcon install wdfsimpleum.inf root\toaster" to install
;
; Important:
; This INF depends on WUDFRD.inf which is available starting Windows 11
;
;--*/
[Version]
Signature="$WINDOWS NT$"
Class=TOASTER
ClassGuid={B85B7C50-6A01-11d2-B841-00C04FAD5171}
Provider=%ProviderString%
DriverVer=03/20/2003,5.0.3788.0
CatalogFile=wudf.cat
PnpLockdown=1
[DestinationDirs]
DefaultDestDir = 13
[SourceDisksNames]
1 = %DiskId1%,,,""
[SourceDisksFiles]
wdfsimpleum.dll = 1,,
; ================= Class section =====================
[ClassInstall32]
Addreg=ToasterClassReg
[ToasterClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,100
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
;*****************************************
; Toaster Install Section
;*****************************************
[Manufacturer]
%StdMfg%=Standard,NT$ARCH$.10.0...22000
;
; Hw Id is root\toaster
;
[Standard.NT$ARCH$.10.0...22000]
%Toaster.DeviceDesc%=Toaster_Device, root\toaster
;---------------- copy files
[Toaster_Device.NT]
CopyFiles=UMDriverCopy
Include=WUDFRD.inf
Needs=WUDFRD.NT
[Toaster_Device.NT.HW]
Include=WUDFRD.inf
Needs=WUDFRD.NT.HW
[UMDriverCopy]
wdfsimpleum.dll
;-------------- Service installation
[Toaster_Device.NT.Services]
Include=WUDFRD.inf
Needs=WUDFRD.NT.Services
;-------------- WDF specific section -------------
[Toaster_Device.NT.Wdf]
UmdfService=wdfsimpleum, Toaster_Install
UmdfServiceOrder=wdfsimpleum
[Toaster_Install]
UmdfLibraryVersion=$UMDFVERSION$
ServiceBinary=%13%\wdfsimpleum.dll
[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ProviderString = "TODO-Set-Provider"
StdMfg = "(Standard system devices)"
DiskId1 = "WDF Sample Toaster Installation Disk #1"
Toaster.DeviceDesc = "Sample UMDF Toaster Driver - simple"
ClassName = "Toaster"
|