WlanRegisterNotification function Null safety wlanapi

int WlanRegisterNotification(
  1. int hClientHandle,
  2. int dwNotifSource,
  3. int bIgnoreDuplicate,
  4. Pointer<NativeFunction<WlanNotificationCallback>> funcCallback,
  5. Pointer<NativeType> pCallbackContext,
  6. Pointer<NativeType> pReserved,
  7. Pointer<Uint32> pdwPrevNotifSource
)

The WlanRegisterNotification function is used to register and unregister notifications on all wireless interfaces.

DWORD WlanRegisterNotification(
  HANDLE                     hClientHandle,
  DWORD                      dwNotifSource,
  BOOL                       bIgnoreDuplicate,
  WLAN_NOTIFICATION_CALLBACK funcCallback,
  PVOID                      pCallbackContext,
  PVOID                      pReserved,
  PDWORD                     pdwPrevNotifSource
);

Implementation

int WlanRegisterNotification(
        int hClientHandle,
        int dwNotifSource,
        int bIgnoreDuplicate,
        Pointer<NativeFunction<WlanNotificationCallback>> funcCallback,
        Pointer pCallbackContext,
        Pointer pReserved,
        Pointer<Uint32> pdwPrevNotifSource) =>
    _WlanRegisterNotification(hClientHandle, dwNotifSource, bIgnoreDuplicate,
        funcCallback, pCallbackContext, pReserved, pdwPrevNotifSource);