I take his code to compile and displays an error & gt;" Missing directive CatalogFile required for digital signature. "
Then I will just add a sentence under the Version "CatalogFile=ABC. The CAT,"
Then compile another mistakes "" 22.9.1: hellowdm. Sys in [youmark_files_driver] \ hellowdm inf is missing or always be decompressed the from the source media. Both Please verify all the path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
\ hellowdm inf does not have NTAMD64 decorated model sections. "
I already knelt, before the book of 400 pages is at about the same, but in the end the more than 100 pages of WDM had to do this, to a great god help me few minutes to solve it,,, best can directly after can use or change.inf file,
He.inf file as follows "
;; The Win2K DDK documentation contains an excellent INF reference.
; -- -- -- -- -- -- -- -- -- the Version Section -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
[Version]
Signature="$$" CHICAGO
The Provider=Zhangfan_Device
DriverVer=11/1/2007, 3.0.0.3
; If the device fits one of the standard classes, use the name and the GUID here,
; Otherwise the create your own device class and GUID as this example shows,
Class=ZhangfanDevice
BFF ClassGUID={EF2962F0 d55 0-4 - B8AA - 2221 ee8a79b0}
; -- -- -- -- -- -- -- -- -- SourceDiskNames and SourceDiskFiles Section -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
; These sections identify the source disks and files for the installation. They are
; To here as an example, but commented out.
[SourceDisksNames]
1="HelloWDM", Disk1,,
[SourceDisksFiles]
HelloWDM. Sys=1, MyDriver_Check,
; -- -- -- -- -- -- -- -- -- ClassInstall/ClassInstall32 Section -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
; Not necessary if using a standard class
; 9 x Style
[ClassInstall]
Addreg=Class_AddReg
; NT Style
[ClassInstall32]
Addreg=Class_AddReg
[Class_AddReg]
DeviceClassName HKR,,,, % %
HKR, Icon, and "5"
; -- -- -- -- -- -- -- -- -- DestinationDirs Section -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
[DestinationDirs]
YouMark_Files_Driver=10, System32 \ Drivers
; -- -- -- -- -- -- -- -- -- Manufacturer and Models Sections -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
(Manufacturer)
MfgName % %=Mfg0
[Mfg0]
; PCI hardware Ids use the form
; PCI \ VEN_aaaa & amp; DEV_bbbb & amp; SUBSYS_cccccccc & amp; REV_dd
; ?? 3 e?? X?? O u? ID
% DeviceDesc %=YouMark_DDI, PCI \ VEN_9999 & amp; DEV_9999
; -- -- -- -- -- -- -- -- -- -- DDInstall Sections -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
; -- -- -- -- -- -- -- -- -- Windows 9 x -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
; Experimentation has to that DDInstall root names greater than 19 characters
; Cause the problems in the Windows 98
[YouMark_DDI]
CopyFiles=YouMark_Files_Driver
AddReg=YouMark_9X_AddReg
[YouMark_9X_AddReg]
HKR DevLoader,, * ntkern
HKR NTMPDriver, HelloWDM. Sys
HKR, "Parameters", "BreakOnEntry x00010001 0, 0
; -- -- -- -- -- -- -- -- -- Windows NT -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
[YouMark_DDI. NT]
CopyFiles=YouMark_Files_Driver
AddReg=YouMark_NT_AddReg
[YouMark_DDI. NT. Services]
The Addservice=HelloWDM, 0 x00000002, YouMark_AddService
[YouMark_AddService]
DisplayName SvcDesc=% %
ServiceType=1; SERVICE_KERNEL_DRIVER
StartType=3; SERVICE_DEMAND_START
ErrorControl=1; SERVICE_ERROR_NORMAL
ServiceBinary=10% % \ System32 \ Drivers \ HelloWDM sys
[YouMark_NT_AddReg]
Registry key HKLM, "System \ CurrentControlSet \ Services \ HelloWDM \ the Parameters", \
"BreakOnEntry x00010001 0, 0
; -- -- -- -- -- -- -- -- -- Files (common) -- -- -- -- -- -- -- -- -- -- -- -- --
[YouMark_Files_Driver]
HelloWDM. Sys
; -- -- -- -- -- -- -- -- -- Strings Section -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
(Strings)
ProviderName="Zhangfan."
Zhangfan MfgName="Soft"
DeviceDesc="Hello World WDM!"
DeviceClassName="Zhangfan_Device"
SvcDesc="Zhangfan"
CodePudding user response:
This problem solved? I also encountered this problemCodePudding user response:
http://baike.baidu.com/link? Url=ploTjvVd7b9Up5yzV_SncmP3_dOfuG4_NcpoUpQhNUq9C7Rr74LHXzbvR0rU2_ oeppO -- or8f2d9YKfO4SSukqCodePudding user response:
Can you get it, I just contact with WDM driver, encountered this problem, and you are same, 495939792 for QQCodePudding user response:
The problem today, I finally settled, in win10 on 64 test, you can add my qq, 2437825171CodePudding user response:
You use VS2015 built a simple driver project, then consider to automatically generate.inf file is ok ~CodePudding user response:
My side is [SourceDisksFiles] HelloWDM sys=1, MyDriver_Check, because this configuration, the need to generate directory (usually the Debug or release directory) a MyDriver_Check directoryTo [SourceDisksFiles] HelloWDM. Sys=1,,