SetWANEvent

BOOL CNdisApi::SetWANEvent ( HANDLE hEvent );

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:
User application should create Win32 event (with CreateEvent API call) and pass event handle to this function. Helper driver will signal this event when WAN (dial-up, DSL, ADSL or etc.) connection is established or terminated.
This member calls 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