I never got success when using the fancier ways that Win32::API provides for encoding the structs. I've always had to manually use pack and specify integers and pointers when importing functions. Maybe the numerical value of $^E is documented somewhere in the MSDN? A cursory search turns up error 1008, which seems to just mean that you used an unknown GUID...
The signature for WlanConnect() seems to be
['WlanConnect' => 'IPPI' => 'I'],
and I think it should be possible to construct the appropriate structure without involving that dark Win32::API magic that I try to avoid. You "just" have to pack the two DOT11 structs and put pointers to them (using the P pack template) into a string, and pass that string to WlanConnect. In principle it should be easy, but I currently don't have the time to investigate this, sorry.
In reply to Re: Adding WlanConnect() to Win32::Wlan::API
by Corion
in thread Adding WlanConnect() to Win32::Wlan::API
by tomsell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |