#if !defined(AFX_HWWIZPROTOCOLPROPPAGE_H__F457BCC2_6D18_11D3_A501_0008C75BC490__INCLUDED_)
#define AFX_HWWIZPROTOCOLPROPPAGE_H__F457BCC2_6D18_11D3_A501_0008C75BC490__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// HwWizProtocolPropPage.h : header file
//

#include "DigiInf.h"


#define NO_PROTOCOL_INDEX 0xffffffff

/////////////////////////////////////////////////////////////////////////////
// CHwWizProtocolPropPage dialog

class CHwWizProtocolPropPage : public CPropertyPageEx
{
	DECLARE_DYNCREATE(CHwWizProtocolPropPage)

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

// Operations
   void SetPropPageParams(HDEVINFO const DeviceInfoSet,
                          PSP_DEVINFO_DATA const DeviceInfoData,
                          CStringArray const & astrProtocolChoices,
                          CString AdapterIdentityString);
   void SetTitle(CString str) {m_Title = str; m_psp.pszTitle = m_Title; TRACE("Title:%s\n",m_psp.pszTitle);}

   // We are using CreatePropertySheetPage, it takes a  PROPSHEETPAGE struct,
   // CPropertySheetEx doesn't have one, but m_psp is a "subset",
   // so we will copy in what we have and then fill in the rest
   PROPSHEETPAGE m_kludge_psp;
 
// Dialog Data
	//{{AFX_DATA(CHwWizProtocolPropPage)
	enum { IDD = IDD_HwWizProtocol_Proppage };
	CStatic	m_wPhoneProtocol;
	CStatic	m_wProtocolInstruction;
	CComboBox	m_ComboProtocol;
	CString	m_ProtocolString;
	//}}AFX_DATA

// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CHwWizProtocolPropPage)
	public:
	virtual LRESULT OnWizardNext();
	virtual BOOL OnSetActive();
	virtual BOOL OnWizardFinish();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CHwWizProtocolPropPage)
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
   PROPPAGEPARAMS m_PropPageParams;
   CString m_Title;
   int m_nProtocolIndex;
   CStringArray m_astrChoices;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HWWIZPROTOCOLPROPPAGE_H__F457BCC2_6D18_11D3_A501_0008C75BC490__INCLUDED_)
