Source code of Windows XP (NT5)
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.

68 lines
1.1 KiB

  1. #ifndef _XCVDLG_H
  2. #define _XCVDLG_H
  3. #include "inetxcv.h"
  4. class TXcvDlg {
  5. public:
  6. TXcvDlg (
  7. LPCTSTR pServerName,
  8. HWND hWnd,
  9. LPCTSTR pszPortName);
  10. virtual ~TXcvDlg (void);
  11. inline BOOL
  12. bValid(VOID) CONST {
  13. return m_bValid;
  14. }
  15. inline DWORD
  16. dwLastError (VOID) CONST {
  17. return m_dwLE;
  18. }
  19. virtual BOOL
  20. PromptDialog (
  21. HINSTANCE hInst) = 0;
  22. static VOID
  23. DisplayErrorMsg (
  24. HINSTANCE hInst,
  25. HWND hWnd,
  26. UINT iTitle,
  27. DWORD dwLE);
  28. protected:
  29. PWSTR
  30. ConstructXcvName(
  31. PCWSTR pServerName,
  32. PCWSTR pObjectName,
  33. PCWSTR pObjectType);
  34. VOID
  35. DisplayLastError (
  36. HWND hWnd,
  37. UINT iTitle);
  38. private:
  39. enum {
  40. DLG_OK, DLG_CANCEL, DLG_ERROR
  41. } DLGRTCODE;
  42. protected:
  43. LPCTSTR m_pszPortName;
  44. BOOL m_bValid;
  45. HWND m_hWnd;
  46. LPTSTR m_pXcvName;
  47. HANDLE m_hXcvPort;
  48. LPCTSTR m_pServerName;
  49. BOOL m_bAdmin;
  50. HINSTANCE m_hInst;
  51. DWORD m_dwLE;
  52. };
  53. #endif