wifipeek.h

来自「windows mobile 6 可以搜索无线网信号的sourcecode」· C头文件 代码 · 共 48 行

H
48
字号
//////////////////////////////////////////////////////////////////////////
//
// 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 + =
减小字号Ctrl + -
显示快捷键?