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.

98 lines
3.1 KiB

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name:
  4. GlobalConstants.h
  5. Abstract:
  6. Global include file.
  7. Author:
  8. ???
  9. Revision History:
  10. Mohit Srivastava 22-Mar-01
  11. --*/
  12. #ifndef _globalconstants_H_
  13. #define _globalconstants_H_
  14. #include <windows.h>
  15. //
  16. // Provider name
  17. //
  18. static LPCWSTR g_wszIIsProvider = L"IIS__PROVIDER";
  19. //
  20. // Instance level property qualifiers
  21. //
  22. static LPCWSTR g_wszIsInherit = L"IsInherit";
  23. static const ULONG g_cchIsInherit = wcslen(g_wszIsInherit);
  24. static LPCWSTR g_wszIsDefault = L"IsDefault";
  25. static const ULONG g_cchIsDefault = wcslen(g_wszIsDefault);
  26. static LPCWSTR g_wszForcePropertyOverwrite = L"ForcePropertyOverwrite";
  27. static const ULONG g_cchForcePropertyOverwrite = wcslen(g_wszForcePropertyOverwrite);
  28. static const ULONG g_fIsInherit = 0x1;
  29. static const ULONG g_fIsDefault = 0x2;
  30. static const ULONG g_fForcePropertyOverwrite = 0x4;
  31. //
  32. // Instance level qualifiers
  33. //
  34. static LPCWSTR g_wszInstanceName = L"InstanceName";
  35. static const ULONG g_cchInstanceName = wcslen(g_wszInstanceName);
  36. static LPCWSTR g_wszInstanceExists = L"InstanceExists";
  37. static const ULONG g_cchInstanceExists = wcslen(g_wszInstanceExists);
  38. static const ULONG g_idxInstanceName = 0;
  39. static const ULONG g_idxInstanceExists = 1;
  40. //
  41. // These contants are used by globdata.cpp
  42. //
  43. static const ULONG ALL_BITS_ON = 0xFFFFFFFF;
  44. static const ULONG PARAM_IN = 0;
  45. static const ULONG PARAM_OUT = 1;
  46. static const ULONG PARAM_INOUT = 2;
  47. static const LPWSTR g_wszGroupPartAssocParent = L"CIM_Component";
  48. static const LPWSTR g_wszElementSettingAssocParent = L"CIM_ElementSetting";
  49. static const LPWSTR g_wszElementParent = L"CIM_LogicalElement";
  50. static const LPWSTR g_wszSettingParent = L"IIsSetting";
  51. static const LPWSTR g_wszExtGroupPartAssocParent = L"IIsUserDefinedComponent";
  52. static const LPWSTR g_wszExtElementSettingAssocParent = L"IIsUserDefinedElementSetting";
  53. static const LPWSTR g_wszExtElementParent = L"IIsUserDefinedLogicalElement";
  54. static const LPWSTR g_wszExtSettingParent = L"IIsUserDefinedSetting";
  55. //
  56. // This is used by globdata, mofgen, and pusher
  57. // A few base classes already have a "Name" primary key. We should not
  58. // be putting the "Name" property in child classes.
  59. //
  60. static enum tagParentClassWithNamePK
  61. {
  62. eIIsDirectory = 0,
  63. eWin32_Service = 1
  64. } eParentClassWithNamePK;
  65. static const LPWSTR g_awszParentClassWithNamePK[] = { L"IIsDirectory", L"Win32_Service", NULL };
  66. //
  67. // Used by dwExtended field of WMI_CLASS and WMI_ASSOCIATION
  68. //
  69. static const ULONG SHIPPED_TO_MOF = 1;
  70. static const ULONG SHIPPED_NOT_TO_MOF = 2;
  71. static const ULONG EXTENDED = 3;
  72. static const ULONG USER_DEFINED_TO_REPOSITORY = 4;
  73. static const ULONG USER_DEFINED_NOT_TO_REPOSITORY = 5;
  74. #endif