Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

  1. // jmazner pinched from inetcfg\rnacall.h class ENUM_MODEM
  2. #ifndef __ENUMODEM_H_
  3. #define __ENUMODEM_H_
  4. class CEnumModem
  5. {
  6. private:
  7. DWORD m_dwError;
  8. DWORD m_dwNumEntries;
  9. DWORD m_dwIndex;
  10. LPRASDEVINFO m_lpData;
  11. public:
  12. CEnumModem();
  13. ~CEnumModem();
  14. DWORD ReInit();
  15. TCHAR * Next();
  16. TCHAR * GetDeviceTypeFromName(LPTSTR szDeviceName);
  17. TCHAR * GetDeviceNameFromType(LPTSTR szDeviceType);
  18. TCHAR * GetDeviceName(DWORD dwIndex);
  19. TCHAR * GetDeviceType(DWORD dwIndex);
  20. BOOL VerifyDeviceNameAndType(LPTSTR szDeviceName, LPTSTR szDeviceType);
  21. DWORD GetNumDevices() { this->ReInit(); return m_dwNumEntries; }
  22. DWORD GetError() { return m_dwError; }
  23. void ResetIndex() { m_dwIndex = 0; }
  24. };
  25. // from inetcfg\export.cpp
  26. // structure to pass data back from IDD_CHOOSEMODEMNAME handler
  27. typedef struct tagCHOOSEMODEMDLGINFO
  28. {
  29. TCHAR szModemName[RAS_MaxDeviceName + 1];
  30. HRESULT hr;
  31. } CHOOSEMODEMDLGINFO, * PCHOOSEMODEMDLGINFO;
  32. INT_PTR CALLBACK ChooseModemDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam,
  33. LPARAM lParam);
  34. BOOL ChooseModemDlgInit(HWND hDlg,PCHOOSEMODEMDLGINFO pChooseModemDlgInfo);
  35. BOOL ChooseModemDlgOK(HWND hDlg,PCHOOSEMODEMDLGINFO pChooseModemDlgInfo);
  36. //rnacall.cpp
  37. HRESULT InitModemList(HWND hCB);
  38. #endif // ENUMODEM.H