Compartilhar via


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.

PKEY_Device_InstanceId

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

PKEY_Device_Interface

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.

PKEY_Device_Model

The model name of the device. PROPVARIANT type VT_LPWSTR.

PKEY_Device_NotPresent

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.

PKEY_FD_Visibility

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.

PKEY_PUBSVCS_METADATA

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.

PKEY_PUBSVCS_METADATA_VERSION

Not used.

PKEY_PUBSVCS_NETWORK_PROFILES_ALLOWED

Not used.

PKEY_PUBSVCS_NETWORK_PROFILES_DEFAULT

Not used.

PKEY_PUBSVCS_NETWORK_PROFILES_DENIED

Not used.

PKEY_PUBSVCS_SCOPE

Not used.

PKEY_PUBSVCS_TYPE

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.

PKEY_Write_Time

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.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
FunctionDiscoveryKeys.h

See also

Key Definitions