IPortableDeviceEventCallback::OnEvent method (portabledeviceapi.h)

The OnEvent method is called by the SDK to notify the application about asynchronous events.

Syntax

HRESULT OnEvent(
  [in] IPortableDeviceValues *pEventParameters
);

Parameters

[in] pEventParameters

Pointer to an IPortableDeviceValues interface that contains event details.

Return value

Any values returned by the application are ignored by Windows Portable Devices.

Remarks

The application must register to receive events by calling IPortableDevice::Advise.

Examples

For an example of how to use this method, see Handling Events from the Device.

Requirements

Requirement Value
Target Platform Windows
Header portabledeviceapi.h
Library PortableDeviceGUIDs.lib

See also

Handling Events from the Device

IPortableDeviceEventCallback Interface