📄 80211_api.h
字号:
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_GetPowerMode)(ULONG &);
#else
UINT GetPowerMode(ULONG &);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: UINT GetRSSI(ULONG &);
//
// Parameters: ULONG Reference.
//
// Description: Call this function to get the current RSSI (Radio Signal
// Strength Indicator), in Dbm. If the function returns
// ERROR_SUCCESS, your ULONG reference will contain the RSSI.
//
// Valid RSSI's range from -100 Dbm to -30 Dbm.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_GetRSSI)(ULONG &);
#else
UINT GetRSSI(ULONG &);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: UINT GetTXPower(ULONG &);
//
// Parameters: ULONG Reference.
//
// Description: Call this function to get the current transmit power of the
// radio. If the function returns ERROR_SUCCESS, your ULONG
// reference will be populated with the TX power in milliwatts.
//
// Valid ranges are from 5 mW - 100 mW.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_GetTXPower)(ULONG &);
#else
UINT GetTXPower(ULONG &);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: UINT GetWepStatus(ULONG &);
//
// Parameters: ULONG Reference.
//
// Description: Call this function to get the current state of the radio's WEP
// and encryption levels. If this function returns ERROR_SUCCESS,
// your ULONG reference will be populated with one of the
// following values:
//
// NDIS_ENCRYPTION_1_ENABLED = WEP is enabled; TKIP and AES
// are not enabled, and a transmit
// key may or may not be available.
// (same as NDIS_RADIO_WEP_ENABLED)
// NDIS_ENCRYPTION_DISABLED = Indicates that AES, TKIP, and
// WEP are disabled, and a transmit
// key is available.
// (Same as NDIS_RADIO_WEP_DISABLED)
// NDIS_ENCRYPTION_NOT_SUPPORTED = Indicates that encryption (WEP,
// TKIP, and AES) is not supported.
// (Same as
// NDIS_RADIO_WEP_NOT_SUPPORTED)
// NDIS_ENCRYPTION_1_KEY_ABSENT = Indicates that AES, TKIP, and
// WEP are disabled, and a
// transmit key is not available.
// (Same as NDIS_RADIO_WEP_ABSENT)
// NDIS_ENCRYPTION_2_ENABLED = Indicates that TKIP and WEP are
// enabled; AES is not enabled,
// and a transmit key is available.
// NDIS_ENCRYPTION_2_KEY_ABSENT = Indicates that there are no
// transmit keys available for use
// by TKIP or WEP, and TKIP and
// WEP are enabled; AES is not
// enabled.
// NDIS_ENCRYPTION_3_ENABLED = Indicates that AES, TKIP, and
// WEP are enabled, and a transmit
// key is available.
// NDIS_ENCRYPTION_3_KEY_ABSENT = Indicates that there are no
// transmit keys available for use
// by AES, TKIP, or WEP, and AES,
// TKIP, and WEP are enabled.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_GetWepStatus)(ULONG &);
#else
UINT GetWepStatus(ULONG &);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: UINT GetRadioIpAddress(TCHAR *);
//
// Parameters: Pointer to a TCHAR array.
//
// Description: Call this function to obtain a formatted string indicating if
// DHCP is enabled, and what the adapters current IP address is.
// If this function returns ERROR_SUCCESS, your TCHAR array will
// contain a string formatted as follows:
//
// IP: DHCP Enabled\nxxx.xxx.xxx.xxx\n
//
// or
//
// IP: DHCP Disabled\nxxx.xxx.xxx.xxx\n
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_GetRadioIpAddress)(TCHAR *);
#else
UINT GetRadioIpAddress(TCHAR *);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: UINT GetCCXStatus(ULONG &);
//
// Parameters: ULONG Reference.
//
// Description: Call this function to get information about the current CCX
// status of the adapter. If the function returns ERROR_SUCCESS,
// your ULONG reference will be populated with one of the
// following values:
//
// NDIS_NETWORK_EAP_MODE_OFF
// NDIS_NETWORK_EAP_MODE_ON
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_GetCCXStatus)(ULONG &);
#else
UINT GetCCXStatus(ULONG &);
#endif
// SET Functions
///////////////////////////////////////////////////////////////////////////////
//
// Function: UINT AddWep(ULONG, BOOL, TCHAR *);
//
// Parameters: ULONG - Key Index (0 - 3)
// BOOL - Transmit Key (TRUE/FALSE)
// TCHAR * - Pointer to null-terminated TCHAR array holding
// key data.
//
// Description: Call this funtion to add a WEP key to the radio. If
// successful, this function will return ERROR_SUCCESS.
//
// Remember that when adding WEP keys to the radio, it is a good
// idea to turn off encryption before you add the keys, and then
// turn it back on after they have been added. Also remember
// that you should add the TRANSMIT KEY last!
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_AddWep)(ULONG, BOOL, TCHAR *);
#else
UINT AddWep(ULONG, BOOL, TCHAR *);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: UINT EnableWep(BOOL);
//
// Parameters: BOOL - TRUE or FALSE
//
// Description: Call this function with TRUE as the parameter to enable WEP
// encryption. Call it with the FALSE parameter to disable WEP
// enctyption. This call is just an alias for: EncryptionStatus.
//
// EnableWEP(TRUE) == EncryptionStatus(NDIS_ENCRYPTION_1_ENABLED)
// EnableWEP(FALSE) == EncryptionStatus(NDIS_ENCRYPTION_DISABLED)
//
// If this function is successful, it will return ERROR_SUCCESS.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_EnableWep)(BOOL);
#else
UINT EnableWep(BOOL);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: UINT EncryptionStatus(UINT mode);
//
// Parameters: UINT
//
// Description: Call this funtion with one of the following parameters to set
// the desired EncryptionStatus. If successful, this function
// will return ERROR_SUCCESS.
//
// NDIS_ENCRYPTION_1_ENABLED = WEP is enabled; TKIP and AES
// are not enabled, and a transmit
// key may or may not be available.
// (same as NDIS_RADIO_WEP_ENABLED)
// NDIS_ENCRYPTION_DISABLED = Indicates that AES, TKIP, and
// WEP are disabled, and a transmit
// key is available.
// (Same as NDIS_RADIO_WEP_DISABLED)
// NDIS_ENCRYPTION_NOT_SUPPORTED = Indicates that encryption (WEP,
// TKIP, and AES) is not supported.
// (Same as
// NDIS_RADIO_WEP_NOT_SUPPORTED)
// NDIS_ENCRYPTION_1_KEY_ABSENT = Indicates that AES, TKIP, and
// WEP are disabled, and a
// transmit key is not available.
// (Same as NDIS_RADIO_WEP_ABSENT)
// NDIS_ENCRYPTION_2_ENABLED = Indicates that TKIP and WEP are
// enabled; AES is not enabled,
// and a transmit key is available.
// NDIS_ENCRYPTION_2_KEY_ABSENT = Indicates that there are no
// transmit keys available for use
// by TKIP or WEP, and TKIP and
// WEP are enabled; AES is not
// enabled.
// NDIS_ENCRYPTION_3_ENABLED = Indicates that AES, TKIP, and
// WEP are enabled, and a transmit
// key is available.
// NDIS_ENCRYPTION_3_KEY_ABSENT = Indicates that there are no
// transmit keys available for use
// by AES, TKIP, or WEP, and AES,
// TKIP, and WEP are enabled.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_EncryptionStatus)(UINT mode);
#else
UINT EncryptionStatus(UINT mode);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: SetAuthenticationMode(ULONG mode)
//
// Parameters: ULONG
//
// Description: Call this function with one of the following parameters to set
// the desired AuthenticationMode. If successful, this function
// will return ERROR_SUCCESS.
//
// NDIS_RADIO_AUTH_MODE_OPEN = 802.11b Open Authentication
// NDIS_RADIO_AUTH_MODE_SHARED = 802.11b Shared Autehntication
// NDIS_RADIO_AUTH_MODE_AUTO = Auto switch between Open/Shared
// NDIS_RADIO_AUTH_MODE_ERROR = Defined as error value.
// NDIS_RADIO_AUTH_MODE_WPA = WPA Authentication
// NDIS_RADIO_AUTH_MODE_WPA_PSK = WPA Preshared Key Auth
// NDIS_RADIO_AUTH_MODE_WPA_NONE = WPA None.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_SetAuthenticationMode)(ULONG);
#else
UINT SetAuthenticationMode(ULONG);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: SetChannel(USHORT)
//
// Parameters: USHORT
//
// Description: This function is currently not implemented. Ad-hoc networks
// will select a channel or use the already existing channel.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_SetChannel)(USHORT);
#else
UINT SetChannel(USHORT);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: SetNetworkMode(ULONG)
//
// Parameters: ULONG
//
// Description: Call this function with one of the following parameters to set
// the desired Network Mode. If successful, this function will
// return ERROR_SUCCESS.
//
// NDIS_NET_MODE_IBSS = Ad-Hoc (802.11)
// NDIS_NET_MODE_ESS = 802.11b Infrastructure
// NDIS_NET_AUTO_UNKNOWN = Auto Switching (not reccomended)
// NDIS_NET_MODE_UNKNOWN = Unknown Mode, used in GET calls
// only, do not SET
// NDIS_NET_TYPE_OFDM_5G = 5 Gigahertz 54 Mbps
// NDIS_NET_TYPE_OFDM_2_4G = 802.11g 2.4 Gigahertz
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_SetNetworkMode)(ULONG);
#else
UINT SetNetworkMode(ULONG);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: SetPowerMode(ULONG)
//
// Parameters: ULONG
//
// Description: Call this function with one of the following parameters to set
// the desired Power Mode. If successful, this function will
// return ERROR_SUCCESS.
//
// NDIS_RADIO_POWER_MODE_CAM = Continious Access Mode
// (eg, Always On)
// NDIS_RADIO_POWER_MODE_PSP = Power Saving Mode
// NDIS_RADIO_POWER_UNKNOWN = Unknown mode, used in GET
// calls, DO NOT SET!
// NDIS_RADIO_POWER_AUTO = Automatic switching mode.
// (Not reccommended)
// NDIS_RADIO_POWER_MODE_FAST_PSP = Best balance of radio
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -