Hello
Sorry for English, but my German is very-very bad.
First of all I wish to thank all people, who took part in translation WLan headers to Delphi, it's great work, I could not find even partial translation anywhere else.
But when I has tried to use these headings, I have found, what not all works correctly. I have problems with getting of the status of wireless connections and when I looked headers, I have found, what not all identically with
MSDN.
In
MSDN WLAN_AVAILABLE_NETWORK structure is described so:
Delphi-Quellcode:
typedef struct _WLAN_AVAILABLE_NETWORK {
WCHAR strProfileName[256];
DOT11_SSID dot11Ssid;
DOT11_BSS_TYPE dot11BssType;
ULONG uNumberOfBssids;
BOOL bNetworkConnectable;
WLAN_REASON_CODE wlanNotConnectableReason;
ULONG uNumberOfPhyTypes;
DOT11_PHY_TYPE dot11PhyTypes[WLAN_MAX_PHY_TYPE_NUMBER];
BOOL bMorePhyTypes;
WLAN_SIGNAL_QUALITY wlanSignalQuality;
BOOL bSecurityEnabled;
DOT11_AUTH_ALGORITHM dot11DefaultAuthAlgorithm;
DOT11_CIPHER_ALGORITHM dot11DefaultCipherAlgorithm;
DWORD dwFlags;
DWORD dwReserved;
} WLAN_AVAILABLE_NETWORK,
But in headers it looks differently:
Delphi-Quellcode:
WLAN_AVAILABLE_NETWORK = record
strProfileName: array [0..WLAN_MAX_NAME_LENGTH - 1] of WCHAR;
dot11Ssid: DOT11_SSID;
dot11BssType: DOT11_BSS_TYPE;
uNumberOfBssids: ULONG;
bNetworkConnectable: BOOL;
wlanNotConnectableReason: WLAN_REASON_CODE;
uDot11PhyType: ULONG;
wlanSignalQuality: WLAN_SIGNAL_QUALITY;
dot11RateSet: DOT11_RATE_SET;
bSecurityEnabled: BOOL;
dot11DefaultAuthAlgorithm: DOT11_AUTH_ALGORITHM;
dot11DefaultCipherAlgorithm: DOT11_CIPHER_ALGORITHM;
dwFlags: DWORD;
dwReserved: DWORD;
end;
Differs even quantity of parametres, therefore I receive wrong values in many fields, for example in wlanSignalQuality and bSecurityEnabled.
I tried to correct headers itself, but have failed.
Maybe someone already have a corrected variant of headers or maybe I can download somewhere wlanapi.dll, which works correctly with current headers?
Thanks in advance,
Max.