WlanRegisterNotification function wlanapi
int
WlanRegisterNotification(
- HANDLE hClientHandle,
- WLAN_NOTIFICATION_SOURCES dwNotifSource,
- bool bIgnoreDuplicate,
- Pointer<
NativeFunction< ? funcCallback,WLAN_NOTIFICATION_CALLBACK> > - Pointer<
NativeType> ? pCallbackContext, - 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,
);