Sample Code

Windows Driver Samples/ WPD Basic Hardware Sample Driver (UMDF Version 1)/ C++/ WpdBasicHardwareDriver.inx/

;
; WpdBasicHardwareDriver.inf
;

[Version]
Signature="$Windows NT$"
Class=WPD
ClassGuid={EEC5AD98-8080-425f-922A-DABF3DE3F69A}
Provider=%Provider%
CatalogFile=WpdBasicHardwareDriver.cat
DriverVer=01/24/2007,1.1.1.1

[Manufacturer]
%MSFTWUDF%=Microsoft,NT$ARCH$

[Microsoft.NT$ARCH$]
%BasicDeviceName%=Basic_Install,WUDF\WpdBasicHardware

[SourceDisksFiles]
WudfUpdate_$UMDFCOINSTALLERVERSION$.dll=1
WpdBasicHardwareDriver.dll=1

[SourceDisksNames]
1 = %MediaDescription%

; =================== WPD Sample Device ==================================

[Basic_Install]
CopyFiles=System32Copy

[Basic_Install.hw]
AddReg=Device_AddReg

[Basic_Install.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall

[Basic_Install.CoInstallers]
AddReg=Basic_Install.CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_CopyFiles]
WudfUpdate_$UMDFCOINSTALLERVERSION$.dll

[Basic_Install.CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WudfUpdate_$UMDFCOINSTALLERVERSION$.dll"

[Basic_Install.Wdf]
UmdfService=WpdBasicHardwareDriver, WpdBasicHardwareDriver_Install
UmdfServiceOrder=WpdBasicHardwareDriver
; Enable file-handle-based I/O targets
UmdfDispatcher = FileHandle

[WpdBasicHardwareDriver_Install]
UmdfLibraryVersion=$UMDFVERSION$
DriverCLSID="{EC7445EE-BC00-4CED-AFE7-A52849F10239}"
ServiceBinary=%12%\UMDF\WpdBasicHardwareDriver.dll

[Device_AddReg]
; HKR,,"EnableLegacySupport",0x10001,0

[WUDFRD_ServiceInstall]
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\WUDFRd.sys

[DestinationDirs]
System32Copy=12,UMDF ; copy to system32\drivers\umdf
CoInstallers_CopyFiles=11

[System32Copy]
WpdBasicHardwareDriver.dll


; =================== Generic ==================================

[Strings]
MSFTWUDF="Microsoft Windows Portable Devices"
Provider="Microsoft WPD"
MediaDescription="WPD Basic Hardware Driver Installation Media"
BasicDeviceName="WPD Basic Hardware Driver"

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS