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.

142 lines
3.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: ldap.hxx
  7. //
  8. // Contents:
  9. //
  10. // History: 06-16-96 yihsins Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. #include "dswarn.h"
  14. #include "..\include\procs.hxx"
  15. #include "..\include\umi.h"
  16. // Needed if this is NT4.0 compile
  17. #include "nt4types.hxx"
  18. #include "iadsp.h"
  19. #include "guid.h"
  20. #include "macro.h"
  21. #include "fsmacro.h"
  22. #include "ntdsapi.h"
  23. extern "C" {
  24. #include <stdio.h>
  25. #include <stddef.h>
  26. #define LDAP_UNICODE 1
  27. #include "winldap.h"
  28. #include "ldapres.h"
  29. #include "adserr.h"
  30. #include "dsgetdc.h"
  31. #include "lmaccess.h"
  32. #include "lmapibuf.h"
  33. }
  34. #include <ntldap.h>
  35. #include "wmiutils.h"
  36. #include "cdispmgr.hxx"
  37. #include "..\ldapc\ldaptype.hxx"
  38. #include "..\ldapc\ldpcache.hxx"
  39. #include "..\ldapc\ldaputil.hxx"
  40. #include "..\ldapc\schutil.hxx"
  41. #include "..\ldapc\ldapsch.hxx"
  42. #include "..\ldapc\util.hxx"
  43. #include "..\ldapc\adsiutil.hxx"
  44. #include "..\ldapc\srchutil.hxx"
  45. #include "..\ldapc\schmgmt.hxx"
  46. #include "..\ldapc\ods2ldap.hxx"
  47. #include "..\ldapc\odsmrshl.hxx"
  48. #include "..\ldapc\odssz.hxx"
  49. #include "..\ldapc\ldap2ods.hxx"
  50. #include "..\ldapc\parse.hxx"
  51. #include "..\ldapc\pathmgmt.hxx"
  52. #include "..\ldapc\ldapres.h"
  53. #include "core.hxx"
  54. #include "ldap2var.hxx"
  55. #include "var2ldap.hxx"
  56. #include "ldap2umi.hxx"
  57. #include "umi2ldap.hxx"
  58. #include "cumisrch.hxx"
  59. #include "common.hxx"
  60. #include "pathutil.hxx"
  61. #include "getobj.hxx"
  62. #include "object.hxx"
  63. #include "cprovcf.hxx"
  64. #include "cprov.hxx"
  65. #include "iprops.hxx"
  66. #include "indunk.hxx"
  67. #include "cschema.hxx"
  68. #include "cprops.hxx"
  69. #include "cpropmgr.hxx"
  70. #include "cconnect.hxx"
  71. #include "cumicurs.hxx"
  72. #include "cquery.hxx"
  73. #include "cquerycf.hxx"
  74. #include "cnamcf.hxx"
  75. #include "cnamesp.hxx"
  76. #include "cconcf.hxx"
  77. #include "property.hxx"
  78. #include "cgenobj.hxx"
  79. #include "cumiobj.hxx"
  80. #include "cenumvar.hxx"
  81. #include "cenumns.hxx"
  82. #include "cenumobj.hxx"
  83. #include "cenumsch.hxx"
  84. #include "globals.hxx"
  85. #include "servtype.hxx"
  86. #include "crootdse.hxx"
  87. #include "name.hxx"
  88. #include "namecf.hxx"
  89. #include "extension.hxx"
  90. #include "cextmgr.hxx"
  91. #include "system.hxx"
  92. // reenable if copy functionality becomes available
  93. //#include "copy.hxx" // copy functionality implemented
  94. #define DISPID_REGULAR 1
  95. #define LDAP_USER_ID 1
  96. #define LDAP_COMPUTER_ID 2
  97. #define LDAP_DOMAIN_ID 3
  98. #define LDAP_GROUP_ID 4
  99. #define LDAP_PRINTER_ID 5
  100. #define LDAP_SERVICE_ID 6
  101. #define LDAP_FILESERVICE_ID 7
  102. #define LDAP_FILESHARE_ID 8
  103. #define LDAP_CLASS_ID 9
  104. #define LDAP_FUNCTIONALSET_ID 10
  105. #define LDAP_SYNTAX_ID 11
  106. #define LDAP_SCHEMA_ID 12
  107. #define LDAP_PROPERTY_ID 13
  108. #define LDAP_OU_ID 14
  109. #define LDAP_O_ID 15
  110. #define LDAP_LOCALITY_ID 16
  111. #define LDAP_COUNTRY_ID 17
  112. #define MAX_CACHE_SIZE 50
  113. #define STATUS_INSUFFICIENT_MEM 0xE0000001