WPD_COMMAND_OBJECT_MANAGEMENT_REVERT_OBJECT command

Cancels an object creation that is currently in progress. This applies only to an object that was created by calling WPD_COMMAND_OBJECT_MANAGEMENT_CREATE_OBJECT_WITH_PROPERTIES_AND_DATA. If the driver has already created the object on the device, it must ensure that the object and all associated data are removed from the device.

When it receives this call, the driver can delete the context and free any resources associated with this object creation request.

If the client neglects to call WPD_COMMAND_OBJECT_MANAGEMENT_COMMIT_OBJECT before disconnecting, then Windows Portable Devices API will call WPD_COMMAND_OBJECT_MANAGEMENT_REVERT_OBJECT to cancel object creation request.

Command category

WPD_CATEGORY_OBJECT_MANAGEMENT

Parameters

Parameters

The driver expects the following parameters.

WPD_PROPERTY_OBJECT_MANAGEMENT_CONTEXT

Return value

Result

The driver should return the following results.

WPD_PROPERTY_COMMON_HRESULT

WPD_PROPERTY_COMMON_DRIVER_ERROR_CODE

Calling methods

  • IStream::Revert
  • IPortableDeviceDataStream::Revert (inherited from IStream)

Requirements

Header

PortableDevice.h

See also

Commands

 

 

Send comments about this topic to Microsoft