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.

109 lines
3.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // Pch.h
  7. //
  8. // Description:
  9. // Precompiled header file.
  10. // Include file for standard system include files, or project specific
  11. // include files that are used frequently, but are changed infrequently.
  12. //
  13. // Maintained By:
  14. // Galen Barbee (GalenB) 14-MAY-2000
  15. //
  16. //////////////////////////////////////////////////////////////////////////////
  17. //////////////////////////////////////////////////////////////////////////////
  18. // Constant Definitions
  19. //////////////////////////////////////////////////////////////////////////////
  20. #ifndef UNICODE
  21. #define UNICODE
  22. #endif
  23. #ifndef _UNICODE
  24. #define _UNICODE
  25. #endif
  26. #if DBG==1 || defined( _DEBUG )
  27. #define DEBUG
  28. //
  29. // Define this to pull in the SysAllocXXX functions. Requires linking to
  30. // OLEAUT32.DLL
  31. //
  32. #define USES_SYSALLOCSTRING
  33. #endif // DBG==1 || _DEBUG
  34. //////////////////////////////////////////////////////////////////////////////
  35. // Forward Class Declarations
  36. //////////////////////////////////////////////////////////////////////////////
  37. //////////////////////////////////////////////////////////////////////////////
  38. // External Class Declarations
  39. //////////////////////////////////////////////////////////////////////////////
  40. //////////////////////////////////////////////////////////////////////////////
  41. // Include Files
  42. //////////////////////////////////////////////////////////////////////////////
  43. #pragma warning (disable: 4514) // Unreferenced inline function removed
  44. #pragma warning (disable: 4201) // Nameless union/struct
  45. #pragma warning (disable: 4706) // Assignment within conditional expression
  46. #include <windows.h>
  47. #include <windowsx.h>
  48. #include <prsht.h>
  49. #include <objbase.h>
  50. #include <objidl.h>
  51. #include <ocidl.h>
  52. #include <ComCat.h>
  53. #include <tchar.h>
  54. #include <commctrl.h>
  55. #include <shellapi.h>
  56. #include <shlwapi.h>
  57. #include <wbemcli.h>
  58. #include <windns.h>
  59. #include <ObjSel.h>
  60. #include <richedit.h>
  61. #include <clusrtl.h>
  62. #include <wincred.h>
  63. #include <Guids.h>
  64. #include <Common.h>
  65. #include <CFactory.h>
  66. #include <Dll.h>
  67. #include <Debug.h>
  68. #include <Log.h>
  69. #include <CITracker.h>
  70. #include <ObjectCookie.h>
  71. #include <ClusCfgGuids.h>
  72. #include <ClusCfgWizard.h>
  73. #include <ClusCfgClient.h>
  74. #include <ClusCfgServer.h>
  75. #include <LoadString.h>
  76. #include <ClusCfg.h>
  77. #include "resource.h"
  78. #include "MessageBox.h"
  79. #include "WaitCursor.h"
  80. //////////////////////////////////////////////////////////////////////////////
  81. // Type Definitions
  82. //////////////////////////////////////////////////////////////////////////////
  83. //////////////////////////////////////////////////////////////////////////////
  84. // Global Definitions
  85. //////////////////////////////////////////////////////////////////////////////
  86. //////////////////////////////////////////////////////////////////////////////
  87. // Constants
  88. //////////////////////////////////////////////////////////////////////////////
  89. #define HR_S_RPC_S_SERVER_UNAVAILABLE MAKE_HRESULT( 0, FACILITY_WIN32, RPC_S_SERVER_UNAVAILABLE )
  90. // (jfranco, bug #377545)
  91. // Limiting user name lengths according to "Naming Properties" and "Example Code for Creating a User"
  92. // topics under Active Directory in MSDN
  93. #define MAX_USERNAME_LENGTH 20