www.pudn.com > WDM_PnPEvent.rar > Test_PnPEventDlg.h


// Test_PnPEventDlg.h : header file 
// 
 
#if !defined(AFX_TEST_PNPEVENTDLG_H__CC2C402A_25E1_4B14_8527_77476E347F1C__INCLUDED_) 
#define AFX_TEST_PNPEVENTDLG_H__CC2C402A_25E1_4B14_8527_77476E347F1C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CTest_PnPEventDlg dialog 
 
class CTest_PnPEventDlg : public CDialog 
{ 
// Construction 
public: 
	CTest_PnPEventDlg(CWnd* pParent = NULL);	// standard constructor 
	virtual ~CTest_PnPEventDlg(); 
 
// Dialog Data 
	//{{AFX_DATA(CTest_PnPEventDlg) 
	enum { IDD = IDD_TEST_PNPEVENT_DIALOG }; 
	CButton	m_Sendevent; 
	CListBox	m_Events; 
	//}}AFX_DATA 
 
	HDEVNOTIFY m_hInterfaceNotification; 
	HDEVNOTIFY m_hHandleNotification; 
	HANDLE m_hDevice; 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CTest_PnPEventDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CTest_PnPEventDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg BOOL OnDeviceChange(UINT nEventType, DWORD dwData); 
	afx_msg void OnSendEvent(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
	VOID EnumerateExistingDevices(const GUID* guid); 
	VOID OnNewDevice(const CString& devname, const GUID* guid); 
	BOOL HandleDeviceChange(DWORD evtype, PDEV_BROADCAST_DEVICEINTERFACE dip); 
	BOOL HandleDeviceChange(DWORD evtype, PDEV_BROADCAST_HANDLE dhp); 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_TEST_PNPEVENTDLG_H__CC2C402A_25E1_4B14_8527_77476E347F1C__INCLUDED_)