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.

105 lines
4.6 KiB

  1. //
  2. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  3. //
  4. #ifndef ATTRIBUTES_H
  5. #define ATTRIBUTES_H
  6. // The Key used in the registry for logging
  7. static LPCTSTR DSPROVIDER = __TEXT("DSProvider");
  8. // Names of the LDAP class attributes
  9. static LPCWSTR ADS_PATH_ATTR = L"ADsPath";
  10. static LPCWSTR LDAP_DISPLAY_NAME_ATTR = L"ldapDisplayName";
  11. static LPCWSTR COMMON_NAME_ATTR = L"cn";
  12. static LPCWSTR GOVERNS_ID_ATTR = L"governsID";
  13. static LPCWSTR SUB_CLASS_OF_ATTR = L"subClassOf";
  14. static LPCWSTR SCHEMA_ID_GUID_ATTR = L"schemaIDGUID";
  15. static LPCWSTR MAPI_DISPLAY_TYPE_ATTR = L"mAPIDisplayType";
  16. static LPCWSTR RDN_ATT_ID_ATTR = L"rDNAttID";
  17. static LPCWSTR SYSTEM_MUST_CONTAIN_ATTR = L"systemMustContain";
  18. static LPCWSTR MUST_CONTAIN_ATTR = L"mustContain";
  19. static LPCWSTR SYSTEM_MAY_CONTAIN_ATTR = L"systemMayContain";
  20. static LPCWSTR MAY_CONTAIN_ATTR = L"mayContain";
  21. static LPCWSTR SYSTEM_POSS_SUPERIORS_ATTR = L"systemPossSuperiors";
  22. static LPCWSTR POSS_SUPERIORS_ATTR = L"possSuperiors";
  23. static LPCWSTR SYSTEM_AUXILIARY_CLASS_ATTR = L"systemAuxiliaryClass";
  24. static LPCWSTR AUXILIARY_CLASS_ATTR = L"auxiliaryClass";
  25. static LPCWSTR DEFAULT_SECURITY_DESCRP_ATTR = L"defaultSecurityDescriptor";
  26. static LPCWSTR OBJECT_CLASS_CATEGORY_ATTR = L"objectClassCategory";
  27. static LPCWSTR SYSTEM_ONLY_ATTR = L"systemOnly";
  28. static LPCWSTR NT_SECURITY_DESCRIPTOR_ATTR = L"nTSecurityDescriptor";
  29. static LPCWSTR DEFAULT_OBJECTCATEGORY_ATTR = L"defaultObjectCategory";
  30. // Names of properties in WBEM/LDAP classes
  31. static LPCWSTR ADSI_PATH_ATTR = L"ADSIPath";
  32. static LPCWSTR OBJECT_CLASS_PROPERTY = L"ds_objectClass";
  33. // Names of the LDAP property attributes
  34. static LPCWSTR ATTRIBUTE_SYNTAX_ATTR = L"attributeSyntax";
  35. static LPCWSTR ATTRIBUTE_ID_ATTR = L"attributeID";
  36. static LPCWSTR IS_SINGLE_VALUED_ATTR = L"isSingleValued";
  37. static LPCWSTR MAPI_ID_ATTR = L"mAPIID";
  38. static LPCWSTR OM_SYNTAX_ATTR = L"oMSyntax";
  39. static LPCWSTR OM_OBJECT_CLASS_ATTR = L"oMObjectClass";
  40. static LPCWSTR SEARCH_FLAGS_ATTR = L"searchFlags";
  41. static LPCWSTR RANGE_LOWER_ATTR = L"rangeLower";
  42. static LPCWSTR RANGE_UPPER_ATTR = L"rangeUpper";
  43. // Names of the LDAP instance attributes
  44. static LPCWSTR OBJECT_CLASS_ATTR = L"objectClass";
  45. static LPCWSTR DISTINGUISHED_NAME_ATTR = L"distinguishedName";
  46. // The OIDs for various LDAP syntaxes
  47. // These values are used to map LDAP Syntax to CIM type
  48. static LPCWSTR DISTINGUISHED_NAME_OID = L"2.5.5.1";
  49. static LPCWSTR OBJECT_IDENTIFIER_OID = L"2.5.5.2";
  50. static LPCWSTR CASE_SENSITIVE_STRING_OID = L"2.5.5.3";
  51. static LPCWSTR CASE_INSENSITIVE_STRING_OID = L"2.5.5.4";
  52. static LPCWSTR PRINT_CASE_STRING_OID = L"2.5.5.5";
  53. static LPCWSTR NUMERIC_STRING_OID = L"2.5.5.6";
  54. static LPCWSTR DN_WITH_BINARY_OID = L"2.5.5.7";
  55. static LPCWSTR BOOLEAN_OID = L"2.5.5.8";
  56. static LPCWSTR INTEGER_OID = L"2.5.5.9";
  57. static LPCWSTR OCTET_STRING_OID = L"2.5.5.10";
  58. static LPCWSTR TIME_OID = L"2.5.5.11";
  59. static LPCWSTR UNICODE_STRING_OID = L"2.5.5.12";
  60. static LPCWSTR PRESENTATION_ADDRESS_OID = L"2.5.5.13";
  61. static LPCWSTR DN_WITH_STRING_OID = L"2.5.5.14";
  62. static LPCWSTR NT_SECURITY_DESCRIPTOR_OID = L"2.5.5.15";
  63. static LPCWSTR LARGE_INTEGER_OID = L"2.5.5.16";
  64. static LPCWSTR SID_OID = L"2.5.5.17";
  65. // The name of the top classes
  66. static LPCWSTR TOP_CLASS = L"ds_top";
  67. static LPCWSTR LDAP_BASE_CLASS = L"DS_LDAP_Root_Class";
  68. // Some WBEM class names
  69. static LPCWSTR UINT8ARRAY_CLASS = L"Uint8Array";
  70. static LPCWSTR DN_WITH_STRING_CLASS = L"DN_With_String";
  71. static LPCWSTR DN_WITH_BINARY_CLASS = L"DN_With_Binary";
  72. static LPCWSTR ROOTDSE_CLASS = L"RootDSE";
  73. static LPCWSTR INSTANCE_ASSOCIATION_CLASS = L"DS_LDAP_Instance_Containment";
  74. static LPCWSTR CLASS_ASSOCIATION_CLASS = L"DS_LDAP_Class_Containment";
  75. static LPCWSTR DN_CLASS = L"DN_Class";
  76. static LPCWSTR DN_ASSOCIATION_CLASS = L"DSClass_To_DNInstance";
  77. // Some othe literals common to the project
  78. static LPCWSTR LDAP_PREFIX = L"LDAP://";
  79. static LPCWSTR ROOT_DSE_PATH = L"LDAP://RootDSE";
  80. static LPCWSTR RIGHT_BRACKET_STR = L")";
  81. static LPCWSTR LEFT_BRACKET_STR = L"(";
  82. static LPCWSTR AMPERSAND_STR = L"&";
  83. static LPCWSTR PIPE_STR = L"|";
  84. static LPCWSTR SPACE_STR = L" ";
  85. static LPCWSTR COMMA_STR = L",";
  86. static LPCWSTR EQUALS_STR = L"=";
  87. // Prefixes for class names
  88. static LPCWSTR LDAP_CLASS_NAME_PREFIX = L"DS_";
  89. static const DWORD LDAP_CLASS_NAME_PREFIX_LENGTH = 3;
  90. static LPCWSTR LDAP_ARTIFICIAL_CLASS_NAME_PREFIX = L"ADS_";
  91. static const DWORD LDAP_ARTIFICIAL_CLASS_NAME_PREFIX_LENGTH = 4;
  92. static LPCWSTR WBEMPERFORMANCEDATAMUTEX = L"WbemPerformanceDataMutex";
  93. #endif