// Alarm2Dlg.h : header file
//

#if !defined(AFX_ALARM2DLG_H__8BF8BAEF_9570_438D_8F4F_A331B5821E27__INCLUDED_)
#define AFX_ALARM2DLG_H__8BF8BAEF_9570_438D_8F4F_A331B5821E27__INCLUDED_

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

typedef struct{
	HANDLE     *hEvent;
	BOOL       *lpStopThread;
	int        *TotalReceive;
	int        *TotalTimeout;
	int        *ThreadIndex;
	CListBox   *pListBox;
	CListBox   *pListBox2;
} THREAD_DATA;

/////////////////////////////////////////////////////////////////////////////
// CAlarm2Dlg dialog

class CAlarm2Dlg : public CDialog
{
// Construction
public:
	CAlarm2Dlg(CWnd* pParent = NULL);	// standard constructor
    int       m_iTotalReceive;
    int       m_iTotalTimeout;
    int       m_iThreadIndex;
	CListBox  *m_pListBox;
	CListBox  *m_pListBox2;

	BOOL m_bStopThread;
	CWinThread *m_pThread;
	THREAD_DATA m_ThreadData;

// Dialog Data
	//{{AFX_DATA(CAlarm2Dlg)
	enum { IDD = IDD_ALARM2_DIALOG };
	CString	m_strIPAddress;
	CString	m_strIPAddress2;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CAlarm2Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnStart();
	afx_msg void OnStop();
	afx_msg void OnExit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ALARM2DLG_H__8BF8BAEF_9570_438D_8F4F_A331B5821E27__INCLUDED_)
