www.pudn.com > RAS_dial.rar > RasDemoDlg.h


// RasDemoDlg.h : header file 
// 
 
#if !defined(AFX_RASDEMODLG_H__FD1108C7_7348_11D2_B175_00104B8FD991__INCLUDED_) 
#define AFX_RASDEMODLG_H__FD1108C7_7348_11D2_B175_00104B8FD991__INCLUDED_ 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
 
#include "rasClient.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CRasDemoDlg dialog 
 
class CRasDemoDlg : public CDialog 
{ 
// Construction 
public: 
	CRasDemoDlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CRasDemoDlg) 
	enum { IDD = IDD_RASDEMO_DIALOG }; 
	CComboBox	m_ctrlModem_Combo; 
	CString	m_strPasswd; 
	CString	m_strModemName; 
	CString	m_strStatus; 
	CString	m_strPhone; 
	CString	m_strUser; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CRasDemoDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
	BOOL m_bUserCancel; 
 
	CRasClient* m_pRas;	 
 
	BOOL DialUpNetwork(); 
	BOOL FillModemCombo(); 
	BOOL CreateDialUpEntry(); 
	void CtrlYield(); 
	// Generated message map functions 
	//{{AFX_MSG(CRasDemoDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnConnectBtn(); 
	virtual void OnCancel(); 
	afx_msg void OnDestroy(); 
	afx_msg void OnDisconnBtn(); 
	//}}AFX_MSG  
	DECLARE_MESSAGE_MAP() 
}; 
 
static DWORD m_dwError = 0; 
static DWORD m_dwExtendError = 0; 
void CALLBACK rasCallback1(HRASCONN hrasconn, UINT unMsg, RASCONNSTATE rascs,  
						 DWORD dwError, DWORD dwExtendedError); 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Developer Studio will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_RASDEMODLG_H__FD1108C7_7348_11D2_B175_00104B8FD991__INCLUDED_)