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.

121 lines
1.9 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1995 - 1996
  3. All rights reserved.
  4. Module Name:
  5. F:\nt\private\windows\spooler\printui.pri\portdlg.hxx
  6. Abstract:
  7. Printer Port Add / Delete and Monitor Add / Delete dialogs
  8. Author:
  9. Steve Kiraly (SteveKi) 11/06/95
  10. Revision History:
  11. --*/
  12. #ifndef _PORTDLG_HXX
  13. #define _PORTDLG_HXX
  14. /********************************************************************
  15. Add Port Dialog.
  16. ********************************************************************/
  17. class TAddPort : public MGenericDialog {
  18. SIGNATURE( 'adpt' )
  19. public:
  20. TAddPort(
  21. IN const HWND hWnd,
  22. IN LPCTSTR pszServerName,
  23. IN const BOOL bAdministrator
  24. );
  25. ~TAddPort(
  26. VOID
  27. );
  28. BOOL
  29. bValid(
  30. VOID
  31. );
  32. BOOL
  33. bDoModal(
  34. VOID
  35. );
  36. //
  37. // Port Message Ids.
  38. //
  39. enum MESSAGES_IDS {
  40. kResourceId = DLG_PRINTER_ADD_PORT,
  41. kErrorMessage = IDS_ERR_PRINTER_ADD_PORT,
  42. kErrorInstallingMonitor = IDS_ERR_PRINTER_ADD_MONITOR,
  43. };
  44. private:
  45. //
  46. // Operator = and copy not defined.
  47. //
  48. TAddPort &
  49. operator =(
  50. const TAddPort &
  51. );
  52. TAddPort(
  53. const TAddPort &
  54. );
  55. BOOL
  56. bHandleMessage(
  57. UINT uMsg,
  58. WPARAM wParam,
  59. LPARAM lParam
  60. );
  61. BOOL
  62. bSetUI(
  63. VOID
  64. );
  65. BOOL
  66. bReadUI(
  67. VOID
  68. );
  69. BOOL
  70. bSaveUI(
  71. VOID
  72. );
  73. BOOL
  74. bAddNewMonitor(
  75. VOID
  76. );
  77. const HWND _hWnd;
  78. const BOOL _bAdministrator;
  79. HWND _hctlMonitorList;
  80. HWND _hctlBrowse;
  81. BOOL _bValid;
  82. LPCTSTR _pszServerName;
  83. TPSetup *_pPSetup;
  84. HANDLE _hPSetupMonitorInfo;
  85. TString _strMonitorName;
  86. BOOL _bPortAdded;
  87. };
  88. #endif