// portabledevice.h
typedef enum tagDELETE_OBJECT_OPTIONS {
PORTABLE_DEVICE_DELETE_NO_RECURSION,
PORTABLE_DEVICE_DELETE_WITH_RECURSION
} DELETE_OBJECT_OPTIONS;
View the official Windows Driver Kit DDI referenceNo description available.
The DELETE_OBJECT_OPTIONS enumeration type describes options that are supported by a device when deleting an object.
PORTABLE_DEVICE_DELETE_NO_RECURSIONDelete the object only and fail if it has children.
PORTABLE_DEVICE_DELETE_WITH_RECURSIONDelete the object and all its children.
An application can retrieve the deletion options that the device supports by calling the IPortableDeviceCapabilities::GetCommandOptions method 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.
Structures and Enumeration Types