// video.h
VIDEOPORT_API LONG VideoPortSetEvent(
[in] IN PVOID HwDeviceExtension,
[in] IN PEVENT pEvent
);
View the official Windows Driver Kit DDI referenceNo description available.
The VideoPortSetEvent function sets an event object to the signaled state if it was not already in that state, and returns the event object's previous state.
HwDeviceExtension [in]Pointer to the miniport driver's device extension.
pEvent [in]Pointer to the event object whose state is to be set.
VideoPortSetEvent returns a nonzero value if the event object was previously in the signaled state.