WlanRegisterNotification function wlanapi

int WlanRegisterNotification(
  1. HANDLE hClientHandle,
  2. WLAN_NOTIFICATION_SOURCES dwNotifSource,
  3. bool bIgnoreDuplicate,
  4. Pointer<NativeFunction<WLAN_NOTIFICATION_CALLBACK>>? funcCallback,
  5. Pointer<NativeType>? pCallbackContext,
  6. Pointer<Uint32>? pdwPrevNotifSource,
)

Used to register and unregister notifications on all wireless interfaces.

To learn more, see learn.microsoft.com/windows/win32/api/wlanapi/nf-wlanapi-wlanregisternotification.

Implementation

@pragma('vm:prefer-inline')
int WlanRegisterNotification(
  HANDLE hClientHandle,
  WLAN_NOTIFICATION_SOURCES dwNotifSource,
  bool bIgnoreDuplicate,
  Pointer<NativeFunction<WLAN_NOTIFICATION_CALLBACK>>? funcCallback,
  Pointer? pCallbackContext,
  Pointer<Uint32>? pdwPrevNotifSource,
) => _WlanRegisterNotification(
  hClientHandle,
  dwNotifSource,
  bIgnoreDuplicate ? TRUE : FALSE,
  funcCallback ?? nullptr,
  pCallbackContext ?? nullptr,
  nullptr,
  pdwPrevNotifSource ?? nullptr,
);