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.

140 lines
2.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: ldapc.hxx
  7. //
  8. // Contents:
  9. //
  10. // History: 06-16-96 yihsins Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. #define _LARGE_INTEGER_SUPPORT_
  14. #define UNICODE
  15. #define _UNICODE
  16. #include "dswarn.h"
  17. extern "C" {
  18. #include <nt.h>
  19. #include <ntrtl.h>
  20. #include <nturtl.h>
  21. }
  22. #include <rpc.h>
  23. #include <windows.h>
  24. #include <lmcons.h>
  25. #include <lmerr.h>
  26. #include <lmapibuf.h>
  27. #include <lmwksta.h>
  28. #include <dsgetdc.h>
  29. #include <dsrole.h>
  30. #include <ntldap.h>
  31. #include <ntlsa.h>
  32. //
  33. // Include sspi.h if applicable.
  34. //
  35. #ifndef Win95
  36. #define SECURITY_WIN32 1
  37. #include <sspi.h>
  38. #endif
  39. #include <stdlib.h>
  40. #include <io.h>
  41. #include <wchar.h>
  42. #include <tchar.h>
  43. #if (defined(BUILD_FOR_NT40))
  44. #include <basetyps.h>
  45. #endif
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49. // Needed if this is for 4.0
  50. #include "nt4types.hxx"
  51. #define LDAP_UNICODE 1
  52. #include "winldap.h"
  53. #include "winber.h"
  54. #include "adserr.h"
  55. #include "adsdb.h"
  56. #include "adsnms.h"
  57. #include "adstype.h"
  58. #include "ldapres.h"
  59. #include "memory.h"
  60. #include "oledserr.h"
  61. #include "oledsdbg.h"
  62. #include "adsi.h"
  63. // From \nt\private\inc for aligning buffers
  64. #include "align.h"
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68. #define BAIL_IF_ERROR(hr) \
  69. if (FAILED(hr)) { \
  70. goto cleanup; \
  71. }\
  72. #define BAIL_ON_FAILURE(hr) \
  73. if (FAILED(hr)) { \
  74. goto error; \
  75. }\
  76. #define CONTINUE_ON_FAILURE(hr) \
  77. if (FAILED(hr)) { \
  78. continue; \
  79. }\
  80. extern HINSTANCE g_hInst;
  81. #include "nocairo.hxx"
  82. #include "misc.hxx"
  83. #include "creden.hxx"
  84. #include "globals.hxx"
  85. #include "ldpcache.hxx"
  86. #include "ldaputil.hxx"
  87. #include "schutil.hxx"
  88. #include "ldapsch.hxx"
  89. #include "ldaptype.hxx"
  90. #include "ods2ldap.hxx"
  91. #include "odsmrshl.hxx"
  92. #include "odssz.hxx"
  93. #include "ldap2ods.hxx"
  94. #include "parse.hxx"
  95. #include "pathmgmt.hxx"
  96. #include "util.hxx"
  97. #include "adsiutil.hxx"
  98. #include "srchutil.hxx"
  99. #include "schmgmt.hxx"
  100. #include "secutil.hxx"
  101. #include "win95.hxx"