WPD_COMMAND_CAPABILITIES_GET_COMMAND_OPTIONS command
Retrieves a list of options, if any, that are supported by a specified command. Some commands offer options—for example, when deleting an object using the WPD_COMMAND_OBJECT_MANAGEMENT_DELETE_OBJECTS command, the driver may or may not support recursive child deletion. To discover whether the driver supports recursive deletion, a client calls this method. In another example, the calling application may use the WPD_COMMAND_STORAGE_FORMAT command to format storage media on the device. Before invoking this command, the application would request a list of storages that can be formatted by passing WPD_OPTION_VALID_OBJECT_IDS to WPD_COMMAND_CAPABILITIES_GET_COMMAND_OPTIONS.
Command category
WPD_CATEGORY_CAPABILITIES
Parameters
Parameters |
---|
The driver expects the following parameters. |
WPD_PROPERTY_CAPABILITIES_COMMAND |
Return value
Result |
---|
The driver should return the following results. |
WPD_OPTION_OBJECT_RESOURCES_NO_INPUT_BUFFER_ON_READ |
WPD_PROPERTY_CAPABILITIES_COMMAND_OPTIONS |
WPD_PROPERTY_COMMON_HRESULT |
WPD_PROPERTY_COMMON_DRIVER_ERROR_CODE |
Calling methods
IPortableDeviceCapabilities::GetCommandOptions
Requirements
Header |
PortableDevice.h |
See also
IPortableDeviceCapabilities::GetCommandOptions
Windows Portable Devices error code