Share via


WPD_COMMAND_STORAGE_FORMAT Command

banner art

Previous Next

WPD_COMMAND_STORAGE_FORMAT Command

The WPD_COMMAND_STORAGE_FORMAT command formats a storage functional object on the device.

Command category

WPD_CATEGORY_STORAGE

Parameters

The driver expects the following parameters.

Parameter VarType Description
WPD_PROPERTY_STORAGE_OBJECT_ID VT_LPWSTR Required. The object ID of the storage medium to format.

Return Values

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

Header: Defined in PortableDevice.h

See Also

Previous Next