📄 80211_api.h
字号:
// performance and battery
// life.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_SetPowerMode)(ULONG mode);
#else
UINT SetPowerMode(ULONG mode);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: SetSSID(TCHAR *)
//
// Parameters: TCHAR *
//
// Description: Call this function with a pointer to a null-terminated TCHAR
// array containing the desired SSID to set the desired SSID of
// the adapter. If an 'ANY' network is desired, just pass in
// _T("ANY"). If successful, this function will return
// ERROR_SUCCESS.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_SetSSID)(TCHAR *);
#else
UINT SetSSID(TCHAR *);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: SetCCXStatus(ULONG)
//
// Parameters: ULONG
//
// Description: Call this function with one of the following parameters to set
// the desired CCX / Network EAP status. If successful, this
// function will return ERROR_SUCCESS.
//
// NDIS_NETWORK_EAP_MODE_OFF = Disable Network EAP / CCX
// NDIS_NETWORK_EAP_MODE_ON = Enable Network EAP / CCX
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_SetCCXStatus)(ULONG);
#else
UINT SetCCXStatus(ULONG);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: SetMixedCellMode(ULONG)
//
// Parameters: ULONG
//
// Description: Call this function with one of the following parameters to set
// the desired Mixed Cell Mode. If successful, this function will
// return ERROR_SUCCESS.
//
// NDIS_MIXED_CELL_OFF = Disable Mixed Cell
// NDIS_MIXED_CELL_ON = Enable Mixed Cell
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_SetMixedCellMode)(ULONG);
#else
UINT SetMixedCellMode(ULONG);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: RemoveWEP(ULONG)
//
// Parameters: ULONG (Key Index 0 - 3)
//
// Description: Call this function with a key index of 0 - 3 to remove the WEP
// key at that index. Upon disassociation with all BSSID's of the
// current service set, the WEP key will be removed by the
// adapter. If successful, this function will return
// ERROR_SUCCESS.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_RemoveWEP)(ULONG);
#else
UINT RemoveWEP(ULONG);
#endif
// helper functions
///////////////////////////////////////////////////////////////////////////////
//
// Function: ConfigureProfile(TCHAR *)
//
// Parameters: TCHAR *
//
// Description: Call this function with a pointer to a null-terminated TCHAR
// array that conatins the name of the profile you wish to
// configure. This function will read profile data from the
// profile manager, set that profile as the default active
// profile, and will configure the radio appoprately.
//
// If needed, the supplicant and any other related services will
// be automatically started and stopped.
//
// If this call is successful, this function will return
// ERROR_SUCCESS.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_ConfigureProfile)(TCHAR *);
#else
UINT ConfigureProfile(TCHAR *);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: EnableZeroConfig(USHORT)
//
// Parameters: USHORT
//
// Description: Call this function with one of the following values to set the
// desired Zero Config status. If successful, this function will
// return ERROR_SUCCESS.
//
// NOTE: A warm-boot is required for changes to become active!
//
// TRUE = Enable Zero Config
// FALSE = Disable Zero Config
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_EnableZeroConfig)(USHORT);
#else
UINT EnableZeroConfig(USHORT);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: isZeroConfigEnabled()
//
// Parameters: None.
//
// Description: Call this function to determine if zero config is currently
// enabled. Unlike most other functions in this API, this
// function will return TRUE if ZeroConfig is enabled, and
// FALSE if it is not.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_isZeroConfigEnabled)();
#else
UINT isZeroConfigEnabled();
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: isOrinoco
//
// Parameters: None.
//
// Description: Call this function to determine if the current radio is an
// Orinoco/Lucent/Wavelan radio. Unlike most other functions in
// this API, this function will return TRUE if this is an Orinoco
// radio, and FALSE if it is not.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_isOrinoco)();
#else
UINT isOrinoco();
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: isSupplicantRunning()
//
// Parameters: None.
//
// Description: Call this function to determine if the security supplicant is
// running. Unlike most other functions in this API, this
// function will return TRUE is the supplicant is running, and
// FALSE if it is not.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_isSupplicantRunning)();
#else
UINT isSupplicantRunning();
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: StartScanList()
//
// Parameters: None.
//
// Description: Call this function to start the scan list functionality of the
// system. If successful, this function will return
// ERROR_SUCCESS.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_StartScanList)();
#else
UINT StartScanList();
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: StartSupplicant()
//
// Parameters: None.
//
// Description: Call this function to start the supplicant service. If
// successful, this function will return ERROR_SUCCESS.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_StartSupplicant)();
#else
UINT StartSupplicant();
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: StopSupplicant()
//
// Parameters: None.
//
// Description: Call this function to stop the supplicant service. If
// successful, this function will return ERROR_SUCCESS.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_StopSupplicant)();
#else
UINT StopSupplicant();
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: isDHCPEnabled()
//
// Parameters: None.
//
// Description: Call this function to determine if DHCP is enabled on the
// current adapter. Unlike most other functions in this API,
// this function will return TRUE if DHCP is enabled, and
// FALSE if it is not.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_isDHCPEnabled)();
#else
UINT isDHCPEnabled();
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: RenewDHCP()
//
// Parameters: None.
//
// Description: Call this function to force a DHCP renewal on the current
// network adapter. This function should not have to be called
// on PocketPC 2003 / CE.NET 4.2 and later devices. If
// successful, this function will return ERROR_SUCCESS.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_RenewDHCP)();
#else
UINT RenewDHCP();
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: GetCurrentDriverName(TCHAR *)
//
// Parameters: TCHAR *
//
// Description: Call this function with a pointer to a TCHAR array that is
// large enough to hold the name of the driver PLUS the null
// terminator. This function will populate the array with the
// name of the driver, and will return ERROR_SUCCESS if it is
// successful.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_GetCurrentDriverName)(TCHAR *);
#else
UINT GetCurrentDriverName(TCHAR *);
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: ResetRadioToSystemSave()
//
// Parameters: None.
//
// Description: Call this function to force the radio to be reset to the last
// desired active profile. If successful, this function will
// return ERROR_SUCCESS.
//
///////////////////////////////////////////////////////////////////////////////
#ifdef DYNAMIC_LOADING
typedef UINT (*PFN_ResetRadioToSystemSave)();
#else
UINT ResetRadioToSystemSave();
#endif
///////////////////////////////////////////////////////////////////////////////
//
// Function: EnableSuppLogging(ULONG)
//
// Parameters: ULONG
//
// Description: Call this function with one of the following values to set
// the desired supplicant logging mode. If successful, this
// function will return ERROR_SUCCESS.
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -