ethernetadapterdlg.h

来自「使用WINDOWS NETBIOS API读取网卡硬件地址,网卡硬件地址是唯一的」· C头文件 代码 · 共 58 行

H
58
字号
// EthernetAdapterDlg.h : header file
//

#if !defined(AFX_ETHERNETADAPTERDLG_H__7823543E_9A5E_437D_BF5E_6F20B09A1069__INCLUDED_)
#define AFX_ETHERNETADAPTERDLG_H__7823543E_9A5E_437D_BF5E_6F20B09A1069__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CEthernetAdapterDlg dialog
typedef struct _tagNetAdapterInfo
{
   ADAPTER_STATUS adapt;
   NAME_BUFFER NameBuff [30];
}NETADAPTERINFO, *PNETADAPTERINFO;

class CEthernetAdapterDlg : public CDialog
{
// Construction
public:
	void GetNetAdapterInfo(int lana_num);
	CEthernetAdapterDlg(CWnd* pParent = NULL);	// standard constructor
    NETADAPTERINFO m_NetAdapterInfo;
	CString m_strMAC;
// Dialog Data
	//{{AFX_DATA(CEthernetAdapterDlg)
	enum { IDD = IDD_ETHERNETADAPTER_DIALOG };
	CComboBox	m_combNetAdapter;
	CStatic	m_staMAC;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CEthernetAdapterDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelChangeNetAdapter();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ETHERNETADAPTERDLG_H__7823543E_9A5E_437D_BF5E_6F20B09A1069__INCLUDED_)

⌨️ 快捷键说明

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