Muokkaa

Jaa


DEVPKEY_DrvPkg_Model

The DEVPKEY_DrvPkg_Model device driver package property represents the model name for a device instance.

Attribute Value
Property key DEVPKEY_DrvPkg_Model
Property-data-type identifier DEVPROP_TYPE_STRING
Property access Read-only access by installation applications and installers
Localized? Yes

Remarks

You can set the value of DEVPKEY_DrvPkg_Model by an INF AddProperty directive that is included in the INF DDInstall section of the INF file that installs the device. You can retrieve the value of the DEVPKEY_DrvPkg_Model property by calling SetupDiGetDeviceProperty.

The following is an example of how to use an INF AddProperty directive to set the value of DEVPKEY_DrvPkg_Model for a device that is installed by an INF DDInstall section "SampleDDInstallSection":

[SampleDDinstallSection]
...
AddProperty=SampleAddPropertySection
...

[SampleAddPropertySection] 
DeviceModel,,,,"DSC-530"
...

Requirements

Version: Windows Vista and later versions of Windows

Header: Devpkey.h (include Devpkey.h)

See also

INF AddProperty directive

INF DDInstall Section

SetupDiGetDeviceProperty