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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for