BOOL CNdisApi::SetWANEvent ( HANDLE hEvent ) const;
Return Value:TRUE if call was successful, FALSE otherwise
Parameters:hEvent
Handle to user created Win32 event. Set it to NULL if you want to release event.
Remarks:
A user application should create a Win32 event (with CreateEvent API call) and pass the event handle to this function. The filter driver will signal this event when a WAN (dial-up, DSL, ADSL or etc.) connection is established or terminated.
This member calls the driver with IOCTL_NDISRD_SET_WAN_EVENT control code (see details below).
IOCTL_NDISRD_SET_WAN_EVENT
| Input Buffer | Win32 event handle or NULL if you want to release event. |
| Input Buffer Size | sizeof(HANDLE) |
| Output Buffer | None |
| Output Buffer Size | 0 |
The IOCTL table describes the native process layout. Under WOW64, the SDK uses ULARGE_INTEGER for the corresponding request and translates handles or pointers. Use the public library function rather than copying native buffer sizes into a direct WOW64 IOCTL call.