General PKEYs

[Function Discovery is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

The following are general keys.


The instance identifier. The PnP provider uses this key on Windows XP to provide access to the devnode descriptor. PROPVARIANT type VT_LPWSTR.


The GUID of the interface. The PnP provider uses this key to provide the GUID on interface instances. The key may also be implemented by other providers. PROPVARIANT type VT_CLSID.


The model name of the device. PROPVARIANT type VT_LPWSTR.


The device presence. This key is used by the PnP provider to show that a device is installed, has not yet been removed, but is not currently online. It may be powered off, unplugged, or the device driver may have marked it not-present. PROPVARIANT type VT_UINT.


The device visibility. This key is used by the PnP provider to show that a device is installed, present, but marked not visible by PnP. PROPVARIANT type VT_UINT.


The metadata for the published resource. This key is optional. The interpretation of this key is determined by the publisher and the subscriber. The method of interpretation must be determined before the key is used. The key can contain a simple data type (such as an integer), a string containing an XML blob, or a serialized data structure. PROPVARIANT type is VT_LPWSTR.


Not used.


Not used.


Not used.


Not used.


Not used.


The resource type for the target service being published. This key is required. The resource type is searchable. The length of the key is limited to 256 bytes. PROPVARIANT type is VT_LPWSTR.


The time that the property store was last written. This key is used by the registry provider to store the last time the property store was saved to the registry. This key should be considered to be read-only, as any value you set will be ignored and overwritten by the value supplied by the registry provider. PROPVARIANT type is VT_FILETIME.


Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]

See also

Key Definitions