[DllImport("wlanapi.dll", SetLastError = true)]
public static extern uint WlanRegisterNotification(
IntPtr hClientHandle,
WLAN_NOTIFICATION_SOURCE dwNotifSource,
bool bIgnoreDuplicate,
WLAN_NOTIFICATION_CALLBACK funcCallback,
IntPtr pCallbackContext,
IntPtr pReserved,
out WLAN_NOTIFICATION_SOURCE pdwPrevNotifSource
);