[go-nuts] Re: Use golang to call the win API

2017-12-20 Thread
dereferencing it > twice to get the actual list. > > (Also, don't forget to call *WlanFreeMemory* when you are done.) > > Good Luck > - Jake > > On Thursday, December 14, 2017 at 11:15:52 PM UTC-5, 流沙 wrote: >> >> API Address:https://msdn.micro

[go-nuts] Use golang to call the win API

2017-12-14 Thread
API Address:https://msdn.microsoft.com/en-us/library/ms706716(VS.85).aspx Code: package main // #define WIN32_LEAN_AND_MEAN // #include import ( "fmt" "syscall" "unsafe" "C" ) var ( wlankernal,_ = syscall.LoadLibrary("Wlanapi.dll") wlanhandle,_ = syscall.GetProcAddress(wlanke