-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathramdisk.inx
104 lines (80 loc) · 2.36 KB
/
ramdisk.inx
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
; RAMDISK.INF
; Windows installation file for installing the Ramdisk driver
; Copyright (c) Microsoft Corporation All rights Reserved
;
; Installation Notes:
;
; Using Devcon: Type "devcon install ramdisk.inf Ramdisk" to install
;
[Version]
Signature="$WINDOWS NT$"
Class=Sample
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider=%MSFT%
DriverVer=11/14/1999,5.00.2183.1
CatalogFile=KmdfSamples.cat
[DestinationDirs]
DefaultDestDir = 12
[ClassInstall32]
Addreg=SampleClassReg
[SampleClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5
[DiskCopyfiles]
WdfRamdisk.sys
[SourceDisksNames]
1=%InstDisk%,
[SourceDisksFiles]
WdfRamdisk.sys=1
[Manufacturer]
%MSFT% = DiskDevice,NT$ARCH$
; For Win2K
[DiskDevice]
%DiskDevDesc% = DiskInstall, Ramdisk
; For XP and later
[DiskDevice.NT$ARCH$]
%DiskDevDesc% = DiskInstall, Ramdisk
[DiskInstall.NT]
CopyFiles = DiskCopyfiles
[DiskInstall.NT.Services]
AddService = Ramdisk, %SPSVCINST_ASSOCSERVICE%, DiskServiceInst
[DiskServiceInst]
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
DisplayName = %DiskServiceDesc%
ServiceBinary = %12%\WdfRamdisk.sys
AddReg = DiskAddReg
[DiskAddReg]
HKR, "Parameters", "BreakOnEntry", %REG_DWORD%, 0x00000000
HKR, "Parameters", "DiskSize", %REG_DWORD%, 0x10000000
;-------------- Coinstaller installation
[DestinationDirs]
CoInstaller_CopyFiles = 11
[DiskInstall.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles
[CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll
[SourceDisksFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames
[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"
[DiskInstall.NT.Wdf]
KmdfService = Ramdisk, Ramdisk_wdfsect
[Ramdisk_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$
[Strings]
MSFT = "Microsoft"
ClassName = "Sample Device"
DiskDevDesc = "WDF Sample RAM disk Driver"
DiskServiceDesc = "Ramdisk Driver"
InstDisk = "Ramdisk Install Disk"
;*******************************************
;Handy macro substitutions (non-localizable)
SPSVCINST_ASSOCSERVICE = 0x00000002
SERVICE_KERNEL_DRIVER = 1
SERVICE_DEMAND_START = 3
SERVICE_ERROR_NORMAL = 1
REG_DWORD = 0x00010001
REG_SZ = 0x00000000