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.

154 lines
2.6 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1995 - 1998
  3. All rights reserved.
  4. Module Name:
  5. procdlg.hxx
  6. Abstract:
  7. Printe Processor page dialogs
  8. Author:
  9. Steve Kiraly (SteveKi) 11/06/95
  10. Revision History:
  11. --*/
  12. #ifndef _PROCDLG_HXX
  13. #define _PROCDLG_HXX
  14. /********************************************************************
  15. Separator Page Dialog.
  16. ********************************************************************/
  17. class TPrintProcessor : public MGenericDialog {
  18. SIGNATURE( 'adpt' )
  19. public:
  20. TPrintProcessor(
  21. IN HWND hWnd,
  22. IN LPCTSTR pszServerName,
  23. IN TString &strPrintProcessor,
  24. IN TString &strDatatype,
  25. IN BOOL bAdministrator
  26. );
  27. ~TPrintProcessor(
  28. VOID
  29. );
  30. BOOL
  31. bValid(
  32. VOID
  33. );
  34. BOOL
  35. bDoModal(
  36. VOID
  37. );
  38. VAR( TString, strPrintProcessor );
  39. VAR( TString, strDatatype );
  40. enum CONSTANTS {
  41. kResourceId = DLG_PRINTER_PROCESSORS,
  42. kErrorMessage = IDS_ERR_PRINTER_PROCESSORS,
  43. };
  44. private:
  45. //
  46. // Operator = and copy not defined.
  47. //
  48. TPrintProcessor &
  49. operator =(
  50. const TPrintProcessor &
  51. );
  52. TPrintProcessor(
  53. const TPrintProcessor &
  54. );
  55. BOOL
  56. bHandleMessage(
  57. IN UINT uMsg,
  58. IN WPARAM wParam,
  59. IN LPARAM lParam
  60. );
  61. BOOL
  62. bLoad(
  63. VOID
  64. );
  65. BOOL
  66. bEnumPrintProcessors(
  67. IN LPTSTR pszServerName,
  68. IN LPTSTR pszEnvironment,
  69. IN DWORD dwLevel,
  70. OUT PVOID *ppvBuffer,
  71. OUT PDWORD pcReturned
  72. );
  73. BOOL
  74. bEnumPrintProcessorDatatypes(
  75. IN LPTSTR pszServerName,
  76. IN LPTSTR pszPrintProcessor,
  77. IN DWORD dwLevel,
  78. OUT PVOID *ppvBuffer,
  79. OUT PDWORD pcReturned
  80. );
  81. BOOL
  82. bSetUI(
  83. VOID
  84. );
  85. BOOL
  86. bReadUI(
  87. VOID
  88. );
  89. BOOL
  90. bSetPrintProcessorList(
  91. VOID
  92. );
  93. BOOL
  94. bSetDatatypeList(
  95. VOID
  96. );
  97. BOOL
  98. TPrintProcessor::
  99. bDataTypeAssociation(
  100. IN BOOL bSetDatatype
  101. );
  102. private:
  103. HWND _hWnd;
  104. HWND _hctlPrintProcessorList;
  105. HWND _hctlDatatypeList;
  106. BOOL _bValid;
  107. TString _strServerName;
  108. PRINTPROCESSOR_INFO_1 *_pPrintProcessors;
  109. DWORD _cPrintProcessors;
  110. BOOL _bAdministrator;
  111. LPCTSTR _pszServerName;
  112. };
  113. #endif