WPD_COMMAND_OBJECT_PROPERTIES_GET_SUPPORTED Command

The WPD_COMMAND_OBJECT_PROPERTIES_GET_SUPPORTED command retrieves the properties supported by an object.

Command Category

WPD_CATEGORY_OBJECT_PROPERTIES

Parameters

The driver expects the following parameter.

Parameter VarType Description
WPD_PROPERTY_OBJECT_PROPERTIES_OBJECT_ID VT_LPWSTR Required. The ID of the object that contains the requested properties.

Return Value

The driver should return the following results.

Result VarType Description
WPD_PROPERTY_OBJECT_PROPERTIES_PROPERTY_KEYS VT_UNKNOWN Required. An IPortableDeviceKeyCollection interface that specifies all of the supported properties.
WPD_PROPERTY_COMMON_HRESULT VT_ERROR Required. An HRESULT value that indicates overall success or failure. Possible result values include Windows Portable Devices error codes. If the caller makes an invalid request, the driver should return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED) but is otherwise not required to return any other result value.
WPD_PROPERTY_COMMON_DRIVER_ERROR_CODE VT_UI4 Optional. A driver-specific error code. This is typically used only for driver testing, or if the driver, device, and client are all designed together.

Requirements

Requirement Value
Header
PortableDevice.h

See also

Commands