Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The WpdHelloWorldDriver project contains a setup information (.inf) file named WpdHelloWorldDriver.inf. This file contains the UMDF parameters and directives that are required by the WUDF co-installer. However, this file also contains parameters and directives that are exclusive to WPD. The following table lists these WPD-specific parameters, directives, and sections.
Section | Directive or parameter | Description |
---|---|---|
Basic_Install.CoInstaller_AddReg | This section is required.
Example:
|
|
Basic_Install.wdf | UmdfService directive | This directive is required.
Example:
|
DDInstall.Services | Includes directive | This directive is required if the driver reuses the MTP class driver components. Otherwise, it should not appear.
The necessary system files must be referenced by using the appropriate Includes or Needs directives. (These files are WpdMtpDr.dll, WpdMtp.dll, WpdMtpUs.dll, WpdConns.dll (for Windows Vista), and either WpdUsb.sys (for Windows Vista) or WinUsb.sys (for Windows 7 and later)). The necessary service files must also be referenced. (The single service file that requires reference is WpdUsb.sys (for Windows Vista) or WinUSB.sys (for Windows 7 and later).) |
DDInstall.Services | Needs directive | This directive is required if the driver reuses the MTP class driver components. Otherwise, it should not appear.
The necessary system files must be referenced by using the appropriate Includes or Needs directives. (These files are: WpdMtpDr.dll, WpdMtp.dll,WpdMtpUs.dll, WpdConns.dll (for Windows Vista), and either WpdUsb.sys (for Windows Vista) or WinUsb.sys (for Windows 7 and later)). The necessary service files must also be referenced. (The single service file that requires reference is WpdUsb.sys (for Windows Vista) or WinUSB.sys (for Windows 7 and later).) |
Device_AddReg | EnableDefaultAutoPlaySupport directive | This directive is required.
Example:
|
Device_AddReg | EnableLegacySupport directive | This directive is required.
Example:
|
Device_AddReg | UseWiaAutoPlay directive | This directive is optional.
|
Install | UmdfLibraryVersion directive | This directive is required.
This directive must be of the form: n.n.n Example:
|
ServiceInstall | ErrorControl directive | This directive is required.
This directive must specify a value of 1. Example:
|
ServiceInstall | ServiceType directive | This directive is required.
This directive must specify a value of 1. Example:
|
ServiceInstall | StartType directive | This directive is required.
This directive must specify a value of 3. Example:
|
Version | Class parameter | This parameter is required. Must be set to "WPD".
Example:
|
Version | ClassGuid parameter | This parameter is required. Must be set to a valid GUID.
Example:
|
WpdHelloWorldDriver_Install | DriverCLSID directive | This directive is required.
This directive must specify a well-formed GUID. Example:
|
WpdHelloWorldDriver_Install | ServiceBinary directive | This directive is required.
This directive must specify a path of the form: "%12%\wudfrd.sys" Example:
|