MTP Extension Events

Events notify an application that changes have occurred on, or with, a device. For example, an application can register to receive notfications that a device has been removed .

Vendor-Extended Event Codes

When a device manufacturer supports a vendor-extended event, their driver combines the vendor's event code (UINT16) with the highest 16 bits of the WPD_EVENT_MTP_VENDOR_EXTENDED_EVENTS GUID.

For example, if the vendor-extended code is 0xC001, the resulting GUID would be as shown in the following example:

{C0010000-5738-4ff2-8445-BE3126691059}

Vendor-Extended Event Parameters

The parameters for a vendor-extended event are reported by the WPD_EVENT_PARAMETER_EVENT_ID GUID and the WPD_PROPERTY_MTP_EXT_EVENT_PARAMS, which is a collection of PROPVARIANTS. These PROPVARIANTS correspond to the event parameters. If there are no parameters, this collection is empty.

{C0010000-5738-4ff2-8445-BE3126691059}

Supporting MTP Extensions