Leaked source code of windows server 2003
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
4.0 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CommonDefs.h
  7. //
  8. // Description:
  9. // This file contains a few definitions common to many classes and files.
  10. //
  11. // Implementation Files:
  12. // None
  13. //
  14. // Maintained By:
  15. // Vij Vasu (Vvasu) 12-MAR-2000
  16. //
  17. //////////////////////////////////////////////////////////////////////////////
  18. // Make sure that this file is included only once per compile path.
  19. #pragma once
  20. //////////////////////////////////////////////////////////////////////////
  21. // Include Files
  22. //////////////////////////////////////////////////////////////////////////
  23. // For some basic types
  24. #include <windows.h>
  25. // For smart classes
  26. #include "SmartClasses.h"
  27. // For DIRID_USER
  28. #include <setupapi.h>
  29. //////////////////////////////////////////////////////////////////////////
  30. // Macros definitions
  31. //////////////////////////////////////////////////////////////////////////
  32. // The INF section for the clean install of cluster binaries.
  33. #define INF_SECTION_CLEAN_INSTALL L"Clean_Install"
  34. // The INF section for cleaning upon an error during a clean install.
  35. #define INF_SECTION_CLEAN_INSTALL_CLEANUP L"Clean_Install_Cleanup"
  36. // The INF section for the upgrade of cluster binaries from Windows Server 2003 when
  37. // the node is already part of a cluster.
  38. #define INF_SECTION_WHISTLER_UPGRADE L"WindowsDotNet_Upgrade"
  39. // The INF section for cleaning upon an error during an upgrade from Windows
  40. // Server 2003 when the node is already part of a cluster.
  41. #define INF_SECTION_WHISTLER_UPGRADE_CLEANUP L"WindowsDotNet_Upgrade_Cleanup"
  42. // The INF section for the upgrade of cluster binaries from Windows Server 2003 when
  43. // the node is not part of a cluster.
  44. #define INF_SECTION_WHISTLER_UPGRADE_UNCLUSTERED_NODE L"WindowsDotNet_Upgrade_Unclustered"
  45. // The INF section for cleaning upon an error during an upgrade from Windows
  46. // Server 2003 when the node is not part of a cluster.
  47. #define INF_SECTION_WHISTLER_UPGRADE_UNCLUSTERED_NODE_CLEANUP L"WindowsDotNet_Upgrade_Unclustered_Cleanup"
  48. // The INF section for the upgrade of cluster binaries from Windows 2000 when
  49. // the node is already part of a cluster.
  50. #define INF_SECTION_WIN2K_UPGRADE L"Windows2000_Upgrade"
  51. // The INF section for cleaning upon an error during an upgrade from Windows
  52. // 2000 when the node is already partof a cluster.
  53. #define INF_SECTION_WIN2K_UPGRADE_CLEANUP L"Windows2000_Upgrade_Cleanup"
  54. // The INF section for the upgrade of cluster binaries from Windows 2000 when
  55. // the node is not part of a cluster.
  56. #define INF_SECTION_WIN2K_UPGRADE_UNCLUSTERED_NODE L"Windows2000_Upgrade_Unclustered"
  57. // The INF section for cleaning upon an error during an upgrade from Windows
  58. // 2000 when the node is not part of a cluster.
  59. #define INF_SECTION_WIN2K_UPGRADE_UNCLUSTERED_NODE_CLEANUP L"Windows2000_Upgrade_Unclustered_Cleanup"
  60. // The INF section for the upgrade of cluster binaries from Windows NT 4.0.
  61. #define INF_SECTION_NT4_UPGRADE L"NT4_Upgrade"
  62. // The INF section for cleaning upon an error during an upgrade from Windows
  63. // NT 4.0.
  64. #define INF_SECTION_NT4_UPGRADE_CLEANUP L"NT4_Upgrade_Cleanup"
  65. // Directory where the cluster files are intalled by default.
  66. #define CLUSTER_DEFAULT_INSTALL_DIR L"%SystemRoot%\\Cluster"
  67. // Directory id of the above directory.
  68. #define CLUSTER_DEFAULT_INSTALL_DIRID ( DIRID_USER + 0 )
  69. //////////////////////////////////////////////////////////////////////////
  70. // Type definitions
  71. //////////////////////////////////////////////////////////////////////////
  72. //
  73. // Smart classes
  74. //
  75. // Smart WCHAR array
  76. typedef CSmartGenericPtr< CPtrTrait< WCHAR > > SmartSz;
  77. // Smart registry handle
  78. typedef CSmartResource< CHandleTrait< HKEY, LONG, RegCloseKey, NULL > > SmartRegistryKey;
  79. // Smart service handle.
  80. typedef CSmartResource< CHandleTrait< SC_HANDLE, BOOL, CloseServiceHandle > > SmartServiceHandle;