-
大小: 2.38MB文件類(lèi)型: .rar金幣: 2下載: 2 次發(fā)布日期: 2023-08-11
- 語(yǔ)言: 其他
- 標(biāo)簽: 室內(nèi)定位??WIFI掃描??無(wú)線網(wǎng)絡(luò)??
資源簡(jiǎn)介
該軟件采用多線程方式實(shí)現(xiàn)了周?chē)鸁o(wú)線網(wǎng)絡(luò)掃描的功能,對(duì)應(yīng)用WIFI進(jìn)行室內(nèi)導(dǎo)航,具有非常重要的意義
軟件實(shí)時(shí)獲取WIFI網(wǎng)絡(luò)的相關(guān)參數(shù):
1.網(wǎng)絡(luò)MAC地址;
2.信號(hào)強(qiáng)度SSID;
3.以及WIFI網(wǎng)絡(luò)顯示名稱(chēng)。
最后將相應(yīng)信息在ListCtrl控件中顯示出來(lái)。

代碼片段和文件信息
//?IndoorNavi.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“IndoorNavi.h“
#include?“IndoorNaviDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CIndoorNaviApp
BEGIN_MESSAGE_MAP(CIndoorNaviApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?CIndoorNaviApp?construction
CIndoorNaviApp::CIndoorNaviApp()
{
//?support?Restart?Manager
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_RESTART;
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
//?The?one?and?only?CIndoorNaviApp?object
CIndoorNaviApp?theApp;
//?CIndoorNaviApp?initialization
BOOL?CIndoorNaviApp::InitInstance()
{
//?InitCommonControlsEx()?is?required?on?Windows?XP?if?an?application
//?manifest?specifies?use?of?ComCtl32.dll?version?6?or?later?to?enable
//?visual?styles.??Otherwise?any?window?creation?will?fail.
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?Set?this?to?include?all?the?common?control?classes?you?want?to?use
//?in?your?application.
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
//?Create?the?shell?manager?in?case?the?dialog?contains
//?any?shell?tree?view?or?shell?list?view?controls.
CShellManager?*pShellManager?=?new?CShellManager;
//?Activate?“Windows?Native“?visual?manager?for?enabling?themes?in?MFC?controls
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//?of?your?final?executable?you?should?remove?from?the?following
//?the?specific?initialization?routines?you?do?not?need
//?Change?the?registry?key?under?which?our?settings?are?stored
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
CIndoorNaviDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
else?if?(nResponse?==?-1)
{
TRACE(traceAppMsg?0?“Warning:?dialog?creation?failed?so?application?is?terminating?unexpectedly.\n“);
TRACE(traceAppMsg?0?“Warning:?if?you?are?using?MFC?controls?on?the?dialog?you?cannot?#define?_AFX_NO_MFC_CONTROLS_IN_DIALOGS.\n“);
}
//?Delete?the?shell?manager?created?above.
if?(pShellManager?!=?NULL)
{
delete?pShellManager;
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件?????114272??2013-04-16?14:44??WIFIScan\IndoorNavi.aps
?????文件???????2967??2013-04-06?20:17??WIFIScan\IndoorNavi.cpp
?????文件????????529??2013-04-06?20:16??WIFIScan\IndoorNavi.h
?????文件??????24200??2013-04-16?14:44??WIFIScan\IndoorNavi.rc
?????文件????????886??2013-04-05?18:06??WIFIScan\IndoorNavi.sln
????..A..H.?????80384??2013-04-16?14:46??WIFIScan\IndoorNavi.v11.suo
?????文件???????6245??2013-04-16?14:28??WIFIScan\IndoorNavi.vcxproj
?????文件???????2299??2013-04-16?14:28??WIFIScan\IndoorNavi.vcxproj.filters
?????文件??????12865??2013-04-16?14:44??WIFIScan\IndoorNaviDlg.cpp
?????文件???????1453??2013-04-16?14:35??WIFIScan\IndoorNaviDlg.h
?????文件???????4491??2013-04-05?18:06??WIFIScan\ReadMe.txt
?????文件??????67777??2012-01-11?00:22??WIFIScan\res\IndoorNavi.ico
?????文件????????804??2013-04-05?18:06??WIFIScan\res\IndoorNavi.rc2
?????文件???????4148??2013-04-15?12:26??WIFIScan\resource.h
?????文件????????212??2013-04-05?18:06??WIFIScan\stdafx.cpp
?????文件???????1753??2013-04-05?18:06??WIFIScan\stdafx.h
?????文件????????314??2013-04-05?18:06??WIFIScan\targetver.h
?????文件???????9529??2013-04-12?23:52??WIFIScan\WifiScan?-?Copy.cpp
?????文件??????11415??2013-04-16?14:31??WIFIScan\WifiScan.cpp
?????文件???????2150??2013-04-16?14:33??WIFIScan\WifiScan.h
?????文件????9345536??2013-04-16?14:46??IndoorNavi.exe
?????目錄??????????0??2013-04-16?14:16??WIFIScan\res
?????目錄??????????0??2013-04-16?14:47??WIFIScan
-----------?---------??----------?-----??----
??????????????9694229????????????????????23
評(píng)論
共有 條評(píng)論