3

I am using the native Wifi Api to fetch the ssid on windows 8 machine but the "WlanOpenHandle" call always fails with the error code 1062. Any help?

Note: there is no wzc service on windows 8.

user3845075
  • 73
  • 2
  • 7
  • Error 1062: The service has not been started. Perhaps the service has a different name in Windows 8, or perhaps the machine you're working on doesn't have the necessary feature(s) installed? – Harry Johnston May 19 '16 at 22:35
  • what are the required features? the documentation does not seem to mention any! – user3845075 May 19 '16 at 23:13
  • Whatever feature includes the wzc service. Alternatively, it may be that the wzc service doesn't exist at all in Windows 8. What are you setting the `dwClientVersion` argument to? – Harry Johnston May 19 '16 at 23:26
  • 2
    It looks like the corresponding service is called "WLAN AutoConfig", is that service installed and running? – Harry Johnston May 19 '16 at 23:59
  • thanks a lot, it was there but i had to manually start it!! call succeeded after that – user3845075 May 20 '16 at 03:39

1 Answers1

9

As confirmed by the OP, the proximate cause of the error was that the service "WLAN AutoConfig" was not running. This requirement does not seem to be documented; I've added a note in the community contributions section.

Harry Johnston
  • 35,639
  • 6
  • 68
  • 158