📄 wifipeek.h
字号:
//////////////////////////////////////////////////////////////////////////
//
// CWifiPeek - helper class for Access Point listing
//
// Coded by dzolee
// http://dzolee.blogspot.com
//
//////////////////////////////////////////////////////////////////////////
#include <Windows.h>
#include <winioctl.h>
#include <NtDDNdis.h>
#include <nuiouser.h>
#if _MSC_VER > 1000
#pragma once
#endif
//basid BSSID info struct
struct BSSIDInfo
{
BYTE BSSID[6]; //mac
WCHAR SSID[32];
int RSSI;
int Channel;
int Infastructure;
int Auth;
};
class CWifiPeek
{
public:
CWifiPeek();
~CWifiPeek();
bool GetAdapters(LPWSTR pDest, DWORD &dwBufSizeBytes);
bool RefreshBSSIDs(LPWSTR pAdapter);
bool GetBBSIDs(LPWSTR pAdapter, struct BSSIDInfo *pDest, DWORD &dwBufSizeBytes, DWORD &dwReturnedItems);
private:
bool OpenDriver();
void CloseDriver();
CRITICAL_SECTION m_Lock;
HANDLE m_hNDUIO;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -