WPD_COMMAND_COMMON_RESET_DEVICE Command

The WPD_COMMAND_COMMON_RESET_DEVICE command resets the device. This does not mean reformatting; it is equivalent to turning the device off and on again.

Command category

WPD_CATEGORY_COMMON

Parameters

This command has no parameters.

Return Value

The driver should return the following results.

Result VarType Description
WPD_PROPERTY_COMMON_HRESULT VT_ERROR Required. An HRESULT that indicates success or failure to carry out the command. If the caller is making an invalid request, the driver should return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED) and is not required to return any other result values. Error codes include Windows Portable Devices error codes or any other appropriate error codes.
WPD_PROPERTY_COMMON_DRIVER_ERROR_CODE VT_UI4 Optional. A driver-specific error code. This is typically only used for driver testing, or if the driver, device, and client are all designed together.

Calling Methods

Can only be called directly using IPortableDevice::SendCommand.

Requirements

Requirement Value
Header
PortableDevice.h

See also

Commands