Event Constants (PortableDevice.h)

Windows Portable Devices defines the following event values.

Constant Description
WPD_EVENT_DEVICE_CAPABILITIES_UPDATED
This event indicates that the device capabilities have changed. Clients should requery the device if they have made any decisions based on device capabilities.
WPD_EVENT_DEVICE_REMOVED
This event is sent when a driver for a device is being unloaded. Typically this is a result of the device being unplugged.
Clients should release the IPortableDevice interface and any IPortableDeviceService interfaces specified in WPD_EVENT_PARAMETER_PNP_DEVICE_ID.
WPD_EVENT_DEVICE_RESET
This event indicates that the device is about to be reset, and all connected clients should close their connections to the device.
WPD_EVENT_OBJECT_ADDED
This event indicates that a new object is available on the device.
WPD_EVENT_OBJECT_REMOVED
This event is sent after a previously existing object has been removed from the device.
The object might be a content object, for example, an image file was deleted; or it might be a functional object, for example, a new storage device was unplugged from the device.
WPD_EVENT_OBJECT_TRANSFER_REQUESTED
This event is sent to request an application to transfer a particular object from the device.
The object is usually a content object, for example, an image file.
WPD_EVENT_OBJECT_UPDATED
This event is sent after an object has been updated, and any connected client should refresh its view of that object.
WPD_EVENT_SERVICE_METHOD_COMPLETE
This event is sent when a driver has completed invoking a service method. This event must be sent even when the method fails. This is an internal WPD DDI event, and will not be available to any applications through IPortableDevice::Advise or IPortableDeviceService::Advise.
WPD_EVENT_STORAGE_FORMAT
This event indicates the progress of a format operation on a storage object.

Requirements

Requirement Value
Header
PortableDevice.h

See also

Constants