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.

66 lines
1.4 KiB

  1. /****************************************************************************
  2. Copyright (c) Microsoft Corporation 1997
  3. All rights reserved
  4. File: PCH.H
  5. Precompiled header file.
  6. ***************************************************************************/
  7. #define UNICODE
  8. #if DBG == 1
  9. #define DEBUG
  10. #endif
  11. #pragma warning(disable:4201) // nameless struct/union
  12. #pragma warning(disable:4127) // condition expression is constant
  13. #include <windows.h>
  14. #include <windowsx.h>
  15. #define STRSAFE_NO_DEPRECATE
  16. #include <strsafe.h>
  17. #include <stdio.h>
  18. #include <shlobj.h>
  19. #include <shlwapi.h>
  20. #include <setupapi.h>
  21. #include <advpub.h>
  22. #include <lm.h>
  23. #include <commdlg.h>
  24. #include <prsht.h>
  25. #include <pshpack2.h>
  26. #include <poppack.h>
  27. #include <commctrl.h> // includes the common control header
  28. #include <aclapi.h>
  29. #define SECURITY_WIN32
  30. #include <sspi.h>
  31. #include <winsock.h>
  32. #include <dsgetdc.h>
  33. #include <winldap.h>
  34. #include <dsrole.h>
  35. #include <ntdsapi.h>
  36. #include <secext.h>
  37. extern "C" {
  38. #include <spapip.h>
  39. #include <remboot.h>
  40. }
  41. #include "rbsetup.h"
  42. #include "debug.h"
  43. #include "utils.h"
  44. #include "resource.h"
  45. // from ntioapi.h
  46. #define FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000
  47. //
  48. // Inc/decrements macros.
  49. //
  50. #define InterlockDecrement( _var ) --_var;
  51. #define InterlockIncrement( _var ) ++_var;