WPD_COMMAND_OBJECT_RESOURCES_DELETE command

Deletes one or more resources from an object. If the request deletes all the resources in an object, the driver can choose whether to delete the entire object, or to allow it to remain as a properties-only object, depending on whether it makes sense to allow a particular object type to exist without resources.

In case of error, the caller is responsible for checking which resources failed to delete (they will still exist on the object).

Command category

WPD_CATEGORY_OBJECT_RESOURCES

Parameters

Parameters

The driver expects the following parameters.

WPD_PROPERTY_OBJECT_RESOURCES_OBJECT_ID

WPD_PROPERTY_OBJECT_RESOURCES_RESOURCE_KEYS

Return value

Result

The driver should return the following results.

WPD_PROPERTY_COMMON_HRESULT

WPD_PROPERTY_COMMON_DRIVER_ERROR_CODE

Calling methods

IPortableDeviceResources::Delete

Requirements

Header

PortableDevice.h

See also

WPD_COMMAND_OBJECT_MANAGEMENT_DELETE_OBJECTS

Requirements for Resources

Commands

 

 

Send comments about this topic to Microsoft