in reply to Re^6: Adding WlanConnect() to Win32::Wlan::API (modded Wlan::API.pm)
in thread Adding WlanConnect() to Win32::Wlan::API
"WLAN_CONNECTION_MODE wlanConnectionMode;", "PDOT11_SSID pDot11Ssid;", "PDOT11_BSSID_LIST pDesiredBssidList;", "DOT11_BSS_TYPE dot11BssType;" as types have never been registered earlier with Win32::API::Struct. Some of those are enums and not pointers to structs, which leads me to the next issueWin32::API::Struct->typedef('WLAN_CONNECTION_PARAMETERS', qw( WLAN_CONNECTION_MODE wlanConnectionMode; LPCWSTR strProfile; PDOT11_SSID pDot11Ssid; PDOT11_BSSID_LIST pDesiredBssidList; DOT11_BSS_TYPE dot11BssType; DWORD dwFlags; )); Win32::API::Struct->typedef ('DOT11_SSID', qw( ULONG uSSIDLength; UCHAR ucSSID; ));
Win32::API::Struct does NOT support enums. On Windows, enum is a "int", which always 32 bits, regardless of platform (32/64).# unused Win32::API::Struct->typedef('WLAN_CONNECTION_MODE', qw( wlan_connection_mode_profile = 0, wlan_connection_mode_temporary_profile, wlan_connection_mode_discovery_secure, wlan_connection_mode_discovery_unsecure, wlan_connection_mode_auto, wlan_connection_mode_invalid ));
C:\Documents and Settings\Owner\Desktop\cpan libs\Win32-Wlan-0.06>perl + wlan.pl Win32::API::Struct::typedef: unknown member type="WLAN_CONNECTION_MODE +", name="w lanConnectionMode" at C:/perl512/site/lib/Win32/API/Struct.pm line 46. Win32::API::Struct::typedef: unknown member type="wlan_connection_mode +_profile", name="=" at C:/perl512/site/lib/Win32/API/Struct.pm line 46. Unknown Win32::API::Struct 'WLAN_CONNECTION_PARAMETERS' at C:/perl512/ +site/lib/W in32/Wlan/API.pm line 373 Can't call method "Pack" on unblessed reference at C:/perl512/site/lib +/Win32/Wla n/API.pm line 381. C:\Documents and Settings\Owner\Desktop\cpan libs\Win32-Wlan-0.06>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Adding WlanConnect() to Win32::Wlan::API (structs no go?)
by tomsell (Acolyte) on Jun 27, 2012 at 20:00 UTC | |
by bulk88 (Priest) on Jun 27, 2012 at 21:47 UTC | |
by bulk88 (Priest) on Jun 28, 2012 at 02:48 UTC | |
by tomsell (Acolyte) on Jun 28, 2012 at 08:48 UTC | |
by Corion (Patriarch) on Jun 28, 2012 at 08:54 UTC |