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.

73 lines
1.4 KiB

  1. #if _MSC_VER >= 1000
  2. #pragma once
  3. #endif // _MSC_VER
  4. #ifndef WINVER
  5. #define WINVER 0x0500
  6. #endif
  7. #ifdef WINNT
  8. #ifndef _WIN32_WINNT
  9. #define _WIN32_WINNT 0x0500
  10. #endif
  11. #endif
  12. #include <windows.h>
  13. #include <aclapi.h>
  14. #include <sddl.h>
  15. #include <stdlib.h>
  16. #include <coredbg.h>
  17. #include <sti.h>
  18. #include <stiregi.h>
  19. #include <stilib.h>
  20. #include <stiapi.h>
  21. #include <stisvc.h>
  22. #include <stiusd.h>
  23. #include <rpcasync.h>
  24. //#include <stistr.h>
  25. #include <regentry.h>
  26. #include <eventlog.h>
  27. #include <lock.h>
  28. #include <validate.h>
  29. #define ATL_APARTMENT_FREE
  30. //You may derive a class from CComModule and use it if you want to override
  31. //something, but do not change the name of _Module
  32. #include <atlbase.h>
  33. extern CComModule _Module;
  34. #include <atlcom.h>
  35. #include <atlapp.h>
  36. #include <atltmp.h>
  37. //
  38. // Files needed for WIA runtime event notifications
  39. //
  40. #include "stirpc.h"
  41. #include <Rpcasync.h>
  42. #include "simlist.h"
  43. #include "simstr.h"
  44. #include "WiaEventInfo.h"
  45. #include "EventRegistrationInfo.h"
  46. #include "WiaEventClient.h"
  47. #include "AsyncRPCEventClient.h"
  48. #include "WiaEventNotifier.h"
  49. #include "SimpleTokenReplacement.h"
  50. //
  51. // Since there's no InterlockedIncrement that takes a pointer-sized value,
  52. // we have to #ifdef this ourselves here
  53. //
  54. #ifdef _WIN64
  55. #define NativeInterlockedIncrement InterlockedIncrement64
  56. #else
  57. #define NativeInterlockedIncrement InterlockedIncrement
  58. #endif