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.

79 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 2000
  5. //
  6. // File: pch.h
  7. //
  8. // Contents: Precompiled header for this project
  9. //
  10. // History: 06-Sep-2000 JeffJon Created
  11. //
  12. //
  13. //--------------------------------------------------------------------------
  14. //
  15. // System includes
  16. //
  17. extern "C"
  18. {
  19. #include <nt.h>
  20. #include <ntrtl.h>
  21. #include <nturtl.h>
  22. }
  23. #include <windows.h>
  24. #include <stdio.h>
  25. #include <atlbase.h>
  26. //
  27. // ILLEGAL_FAT_CHARS
  28. //
  29. #include <validc.h>
  30. //
  31. // ADSI headers
  32. //
  33. #include <iads.h>
  34. #include <activeds.h>
  35. //
  36. //strsafe apis
  37. //
  38. #define STRSAFE_NO_DEPRECATE
  39. #include <strsafe.h>
  40. //
  41. //Crypto APIS
  42. //
  43. #include "wincrypt.h"
  44. //
  45. // often, we have local variables for the express purpose of ASSERTion.
  46. // when compiling retail, those assertions disappear, leaving our locals
  47. // as unreferenced.
  48. //
  49. #ifndef DBG
  50. #pragma warning (disable: 4189 4100)
  51. #endif // DBG
  52. //
  53. // Parser header file
  54. //
  55. #include "varg.h"
  56. #include "strings.h"
  57. #include "parserutil.h"
  58. #include "pcrack.h"
  59. #include "util.h"
  60. #include "dsutil.h"
  61. #include "dsutilrc.h"
  62. //
  63. // Some global defines
  64. //
  65. #define MAX_PASSWORD_LENGTH 256 + 1 // including the NULL terminator