WPD_COMMAND_MTP_EXT_READ_DATA Command

The WPD_COMMAND_MTP_EXT_READ_DATA command retrieves data from the device after the WPD_COMMAND_MTP_EXT_EXECUTE_COMMAND_WITH_DATA_TO_READ command is run.

Command category

WPD_CATEGORY_MTP_EXT_VENDOR_OPERATIONS

Parameters

The driver expects the following parameters.

Parameter VarType Description
WPD_PROPERTY_MTP_EXT_TRANSFER_CONTEXT VT_LPWSTR Required. Identifies the context that was returned by the previous call to the device.
WPD_PROPERTY_MTP_EXT_TRANSFER_NUM_BYTES_TO_READ VT_UI4 Required. Specifies the number of bytes to read.
WPD_PROPERTY_MTP_EXT_TRANSFER_DATA VT_VECTOR|VT_UI1 Required. Identifies the buffer into which the device data is copied.

Return Value

The driver returns the following results.

Result VarType Description
WPD_PROPERTY_MTP_EXT_TRANSFER_NUM_BYTES_READ VT_UI4 Required. Specifies the number of bytes received from the device.
WPD_PROPERTY_MTP_EXT_TRANSFER_DATA VT_VECTOR|VT_UI1 Required. The buffer that contains the device data.

Calling Methods

Can only be called directly by using IPortableDevice::SendCommand.

Requirements

Requirement Value
Header
WpdMtpExtensions.h

See also

Supporting MTP Extensions