question

TamasBalogh-9791 avatar image
0 Votes"
TamasBalogh-9791 asked ·

[Wlanapi] WLAN_NOTIFICATION_MSM NotificationCode 59

Hi,

I'm working on a small Wifi tool using wlanapi in vs2019.
I'm outputting the wlan notifications to the output window and constantly witnessing an unknown notification code numbered 59, which is not documented anywhere; the WLAN_NOTIFICATION_MSM enum has only 17 code enumerations.

I cannot find better explanation for this (and maybe even more?) code anywhere. Can someone help to find this out?

The logged notifications looking like:
ACM ScanComplete
ACM ScanListRefresh
MSM 59
MSM SignalQualityChange
MSM SignalQualityChange
MSM 59
MSM SignalQualityChange
MSM 59

Thank you in advance!

windows-10-network
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CherryZhangShanghaiWicresoft-0389 avatar image
0 Votes"
CherryZhangShanghaiWicresoft-0389 answered ·

Hi,
Thanks for posting here. In Windows,I just found this article which you may have read:
https://docs.microsoft.com/en-us/windows/win32/api/wlanapi/ne-wlanapi-wlan_notification_msm-r1


If this disappointed you, I suggest to post this question here:
http://www.cplusplus.com/forum/


This forum may help you better.
Please note: The given technical support contact information belongs to a third party and may vary without notice. Microsoft does not guarantee the information accuracy.
Best regards
Cherry

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you, that is the one and only info I also found.
I'll try the forums!
BR

0 Votes 0 ·
JeffNygren-2880 avatar image
0 Votes"
JeffNygren-2880 answered ·

@TamasBalogh-9791 Until something better comes along, you can do what I did. Edit your 'wlanapi.h' file and add the line

wlan_notification_msm_this_is_the_mysterious_undocumented_notification_code_59 = 59,

immediately before the wlan_notification_msm_end line. Be aware that this will change the value of wlan_notification_msm_end, if your code happens to be using that value.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AlexeyBereznikov-9031 avatar image
0 Votes"
AlexeyBereznikov-9031 answered ·

We should ignore this code since it is a private OS notification code.
See https://stackoverflow.com/a/64455769/1828989 for the details.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.