⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pingtestdlg.h

📁 A ping test tool. Use to check ping speed and write a log over time. You can test your wlan connecti
💻 H
字号:
// PingTestDlg.h : header file
//

#if !defined(AFX_PINGTESTDLG_H__C5E2E7D7_1E1C_404E_89D1_7949388CB53D__INCLUDED_)
#define AFX_PINGTESTDLG_H__C5E2E7D7_1E1C_404E_89D1_7949388CB53D__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "HScrollListBox.h"
#include "GraphCtrl.h"

/////////////////////////////////////////////////////////////////////////////
// CPingTestDlg dialog

class CPingTestDlg : public CDialog
{
// Construction
public:
	int PingBlocks;
	void SetBarVal(long val);
	void AddLog(char *txt);
	void dumpAdapterInfos(void);
	TCHAR m_RadioMac[32];
	void GetRadioMac(void);
	TCHAR m_DeviceSerialnumber[255];
	static int bcd2int(unsigned char b);
	void GetSerialNumber(void);
	TCHAR AccessPointMAC[32];
	void GetAPmac(void);
	void GetRadioStats(void);
	TCHAR m_SignalStrength[24];
	TCHAR m_Speed[12];
	TCHAR m_RadioStatus[24];
	TCHAR m_RoundTrip[24];
	TCHAR m_Target[24];
	TCHAR m_Time[32];
	TCHAR m_LogText[512];
	BOOL FirstStart;
	int writefile(LPTSTR filetext);
	int count;
	BOOL HadError;
	void AddLog(TCHAR *txt);
	int PingAddress(LPTSTR lpszPingAddr);
	int m_nTimer;
	CPingTestDlg(CWnd* pParent = NULL);	// standard constructor
// CStatic	m_Graph; CGraphCtrl	m_Graph;
// Dialog Data
	//{{AFX_DATA(CPingTestDlg)
	enum { IDD = IDD_PINGTEST_DIALOG };
	CGraphCtrl	m_Graph;
	CHScrollListBox	m_LogList;
	CString	m_IPtxt;
	int		m_Intervall;
	BOOL	m_LogToFile;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPingTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CPingTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnStartTest();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnStartTimer();
	afx_msg void OnLogToFile();
	afx_msg void OnbtnReboot();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PINGTESTDLG_H__C5E2E7D7_1E1C_404E_89D1_7949388CB53D__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -