该软件采用多线程方式实现了周围无线网络扫描的功能,对应用WIFI进行室内导航,具有非常重要的意义
软件实时获取WIFI网络的相关参数:
1.网络MAC地址;
2.信号强度SSID;
3.以及WIFI网络显示名称。
最后将相应信息在ListCtrl控件中显示出来。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 114272 2013-04-16 14:44 WIFIScanIndoorNavi.aps
文件 2967 2013-04-06 20:17 WIFIScanIndoorNavi.cpp
文件 529 2013-04-06 20:16 WIFIScanIndoorNavi.h
文件 24200 2013-04-16 14:44 WIFIScanIndoorNavi.rc
文件 886 2013-04-05 18:06 WIFIScanIndoorNavi.sln
..A..H. 80384 2013-04-16 14:46 WIFIScanIndoorNavi.v11.suo
文件 6245 2013-04-16 14:28 WIFIScanIndoorNavi.vcxproj
文件 2299 2013-04-16 14:28 WIFIScanIndoorNavi.vcxproj.filters
文件 12865 2013-04-16 14:44 WIFIScanIndoorNaviDlg.cpp
文件 1453 2013-04-16 14:35 WIFIScanIndoorNaviDlg.h
文件 4491 2013-04-05 18:06 WIFIScanReadMe.txt
文件 67777 2012-01-11 00:22 WIFIScan
esIndoorNavi.ico
文件 804 2013-04-05 18:06 WIFIScan
esIndoorNavi.rc2
文件 4148 2013-04-15 12:26 WIFIScan
esource.h
文件 212 2013-04-05 18:06 WIFIScanstdafx.cpp
文件 1753 2013-04-05 18:06 WIFIScanstdafx.h
文件 314 2013-04-05 18:06 WIFIScan argetver.h
文件 9529 2013-04-12 23:52 WIFIScanWifiScan - Copy.cpp
文件 11415 2013-04-16 14:31 WIFIScanWifiScan.cpp
文件 2150 2013-04-16 14:33 WIFIScanWifiScan.h
文件 9345536 2013-04-16 14:46 IndoorNavi.exe
目录 0 2013-04-16 14:16 WIFIScan
es
目录 0 2013-04-16 14:47 WIFIScan
----------- --------- ---------- ----- ----
9694229 23
// 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.
“);
TRACE(traceAppMsg 0 “Warning: if you are using MFC controls on the dialog you cannot #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS.
“);
}
// 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 114272 2013-04-16 14:44 WIFIScanIndoorNavi.aps
文件 2967 2013-04-06 20:17 WIFIScanIndoorNavi.cpp
文件 529 2013-04-06 20:16 WIFIScanIndoorNavi.h
文件 24200 2013-04-16 14:44 WIFIScanIndoorNavi.rc
文件 886 2013-04-05 18:06 WIFIScanIndoorNavi.sln
..A..H. 80384 2013-04-16 14:46 WIFIScanIndoorNavi.v11.suo
文件 6245 2013-04-16 14:28 WIFIScanIndoorNavi.vcxproj
文件 2299 2013-04-16 14:28 WIFIScanIndoorNavi.vcxproj.filters
文件 12865 2013-04-16 14:44 WIFIScanIndoorNaviDlg.cpp
文件 1453 2013-04-16 14:35 WIFIScanIndoorNaviDlg.h
文件 4491 2013-04-05 18:06 WIFIScanReadMe.txt
文件 67777 2012-01-11 00:22 WIFIScan
esIndoorNavi.ico
文件 804 2013-04-05 18:06 WIFIScan
esIndoorNavi.rc2
文件 4148 2013-04-15 12:26 WIFIScan
esource.h
文件 212 2013-04-05 18:06 WIFIScanstdafx.cpp
文件 1753 2013-04-05 18:06 WIFIScanstdafx.h
文件 314 2013-04-05 18:06 WIFIScan argetver.h
文件 9529 2013-04-12 23:52 WIFIScanWifiScan - Copy.cpp
文件 11415 2013-04-16 14:31 WIFIScanWifiScan.cpp
文件 2150 2013-04-16 14:33 WIFIScanWifiScan.h
文件 9345536 2013-04-16 14:46 IndoorNavi.exe
目录 0 2013-04-16 14:16 WIFIScan
es
目录 0 2013-04-16 14:47 WIFIScan
----------- --------- ---------- ----- ----
9694229 23
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)