deviceiocontrol.h

来自「IO函数调用测试」· C头文件 代码 · 共 72 行

H
72
字号
// DeviceIoControl.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDeviceIoControl dialog

class CDeviceIoControl : public CHandlePage
{
	DECLARE_DYNCREATE(CDeviceIoControl)

// Construction
public:
	CDeviceIoControl();
	~CDeviceIoControl();

// Dialog Data
	//{{AFX_DATA(CDeviceIoControl)
	enum { IDD = IDD_DEVICEIOCONTROL };
	CStatic	c_c_BytesReturned;
	CStatic	c_c_OutBufferSize;
	CStatic	c_c_InBufferSize;
	CButton	c_HexOut;
	CButton	c_HexIn;
	CSpinButtonCtrl	c_SpinOutBufferSize;
	CNumericEdit	c_BytesReturned;
	CHexDisplay	c_OutBytes;
	CNumericEdit	c_OutBufferSize;
	CButton	c_OutBufferEnable;
	CIDCombo	c_IOCTLs;
	CHexDisplay	c_InBytes;
	CNumericEdit	c_InBufferSize;
	CButton	c_InBufferEnable;
	CButton	c_DeviceIoControl;
	//}}AFX_DATA


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

// Implementation
protected:
	BOOL initialized;

	void showOutput(BOOL mode);
	void showInput(BOOL mode);
	void updateControls();
	void loadIOCTLs();
	void setEvent(DeviceIoControlEvent & e);

	// Generated message map functions
	//{{AFX_MSG(CDeviceIoControl)
	virtual BOOL OnInitDialog();
	afx_msg void OnDeviceiocontrol();
	afx_msg void OnInbufferEnable();
	afx_msg void OnChangeInbuffersize();
	afx_msg void OnChangeInbytes();
	afx_msg void OnSelendokIoctls();
	afx_msg void OnOutbufferEnable();
	afx_msg void OnChangeOutbuffersize();
	afx_msg void OnHexin();
	afx_msg void OnHexout();
	afx_msg void OnIoctl();
	afx_msg void OnHelp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

⌨️ 快捷键说明

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