in reply to Adding WlanConnect() to Win32::Wlan::API
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding WlanConnect() to Win32::Wlan::API
by tomsell (Acolyte) on Jun 26, 2012 at 19:53 UTC | |
by tye (Sage) on Jun 26, 2012 at 20:06 UTC | |
by tomsell (Acolyte) on Jun 26, 2012 at 20:42 UTC | |
by tye (Sage) on Jun 26, 2012 at 20:46 UTC | |
by bulk88 (Priest) on Jun 26, 2012 at 23:47 UTC | |
by tomsell (Acolyte) on Jun 27, 2012 at 08:32 UTC | |
by bulk88 (Priest) on Jun 27, 2012 at 13:48 UTC | |
by tomsell (Acolyte) on Jun 27, 2012 at 15:45 UTC | |
|