BOOL CNdisApi::SetPacketEvent ( HANDLE hAdapter, HANDLE hEvent ) const;
Return Value:TRUE if call was successful, FALSE otherwise
Parameters:hAdapter
Adapter handle to associate event with.
hEvent
Handle to user created Win32 event. Set it to NULL if you want to release event.
Remarks:
The user application should create a Win32 event (with CreateEvent API call) and pass adapter handle and event handle to this function. Helper driver will signal this event when the adapter associated packet queue is non-empty.
This member calls the filter driver with IOCTL_NDISRD_SET_EVENT control code (see details below).
IOCTL_NDISRD_SET_EVENT
| Input Buffer | ADAPTER_EVENT containing the adapter handle and event handle; use a NULL event to release the registration |
| Input Buffer Size | sizeof(ADAPTER_EVENT); the library uses ADAPTER_EVENT_WOW64 in its WOW64 conversion path |
| Output Buffer | None |
| Output Buffer Size | 0 |