WPD_COMMAND_MTP_EXT_EXECUTE_COMMAND_WITH_DATA_TO_WRITE Command
The WPD_COMMAND_MTP_EXT_EXECUTE_COMMAND_WITH_DATA_TO_WRITE command sends an MTP command block, which is followed by a data phase. The data is sent from the host to the device.
Command category
WPD_CATEGORY_MTP_EXT_VENDOR_OPERATIONS
Parameters
The driver expects the following parameters.
Parameter | VarType | Description |
---|---|---|
WPD_PROPERTY_MTP_EXT_OPERATION_CODE | VT_UI4 | Required. Identifies a vendor-extended MTP operation code. |
WPD_PROPERTY_MTP_EXT_OPERATION_PARAMS | VT_UI4 | Required. An IPortableDevicePropVariantCollection collection that identifies the required parameters for the vendor operation code. |
WPD_PROPERTY_MTP_EXT_TRANSFER_TOTAL_DATA_SIZE | VT_UI8 | Required.Specifies the total data size, in bytes, excluding any overhead, to be sent to device. |
Return Value
The driver returns the following results.
Result | VarType | Description |
---|---|---|
WPD_PROPERTY_MTP_EXT_OPTIMAL_TRANSFER_BUFFER_SIZE | VT_UI4 | Required. Specifies the optimal size of the transfer buffer. |
WPD_PROPERTY_MTP_EXT_TRANSFER_CONTEXT | VT_LPWSTR | Optional. A context identifier that the driver uses for subsequent data transfers. |
Calling Methods
Can only be called directly by using IPortableDevice::SendCommand.
Requirements
Requirement | Value |
---|---|
Header |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for