Share via


DELETE_OBJECT_OPTIONS

banner art

Previous Next

DELETE_OBJECT_OPTIONS

The DELETE_OBJECT_OPTIONS enumeration type describes options that are supported by a device when deleting an object.

Syntax

  typedef enum DELETE_OBJECT_OPTIONS{
  PORTABLE_DEVICE_DELETE_NO_RECURSION  =0,
  PORTABLE_DEVICE_DELETE_WITH_RECURSION  =1
};

Members

PORTABLE_DEVICE_DELETE_NO_RECURSION

Delete the object only and fail if it has children.

PORTABLE_DEVICE_DELETE_WITH_RECURSION

Delete the object and all its children.

Remarks

The application can retrieve the deletion options that the device supports by calling IPortableDeviceCapabilities::GetCommandOptions for the WPD_COMMAND_OBJECT_MANAGEMENT_DELETE_OBJECTS command. It should examine the WPD_OPTION_OBJECT_MANAGEMENT_RECURSIVE_DELETE_SUPPORTED option value that this method returns in an IPortableDeviceValuesCollection object.

Requirements

Header: Defined in PortableDevice.h

See Also

Previous Next