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.6 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1996 - 1997
  3. All rights reserved.
  4. Module Name:
  5. query.hxx
  6. Abstract:
  7. Printer DS query header.
  8. Author:
  9. Steve Kiraly (SteveKi) 09-Dec-1996
  10. Revision History:
  11. --*/
  12. #ifndef _QUERY_HXX
  13. #define _QUERY_HXX
  14. /********************************************************************
  15. Printer query DS class
  16. ********************************************************************/
  17. class TQuery {
  18. SIGNATURE( 'quer' )
  19. public:
  20. TQuery(
  21. IN HWND hDlg
  22. );
  23. ~TQuery(
  24. VOID
  25. );
  26. BOOL
  27. bValid(
  28. VOID
  29. );
  30. BOOL
  31. bDoQuery(
  32. VOID
  33. );
  34. BOOL
  35. bPrinterName(
  36. IN TString &strPrinterName,
  37. IN const TString &strDsName
  38. );
  39. BOOL
  40. TQuery::
  41. bSetDefaultScope(
  42. IN LPCTSTR pszDefaultScope
  43. );
  44. inline
  45. LPTSTR
  46. ByteOffset(
  47. IN LPDSOBJECTNAMES pObject,
  48. IN UINT uOffset
  49. )
  50. {
  51. return (LPTSTR)(((LPBYTE)pObject)+uOffset);
  52. }
  53. class TItem {
  54. SIGNATURE( 'item' )
  55. public:
  56. VAR( TString, strName );
  57. VAR( TString, strClass );
  58. };
  59. VAR( UINT, cItems );
  60. VAR( TItem *, pItems );
  61. VAR( TString, strDefaultScope );
  62. private:
  63. //
  64. // Copying and assignment are not defined.
  65. //
  66. TQuery::
  67. TQuery(
  68. const TQuery &rhs
  69. );
  70. TQuery &
  71. TQuery::
  72. operator =(
  73. TQuery &rhs
  74. );
  75. VOID
  76. vReleaseItems(
  77. VOID
  78. );
  79. BOOL _bValid;
  80. HWND _hDlg;
  81. TDirectoryService _Ds;
  82. ICommonQuery *_pICommonQuery;
  83. };
  84. #endif