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.

74 lines
1.6 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently,
  3. // but are changed infrequently
  4. #if !defined(AFX_STDAFX_H__C2DEFF4F_E904_11D1_BAA7_00A02438AD48__INCLUDED_)
  5. #define AFX_STDAFX_H__C2DEFF4F_E904_11D1_BAA7_00A02438AD48__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #define STRICT
  10. #ifdef WINNT
  11. #ifndef _WIN32_WINNT
  12. #define _WIN32_WINNT 0x0500
  13. #endif
  14. #endif
  15. #define _ATL_APARTMENT_FREE
  16. #include <atlbase.h>
  17. #include <shellapi.h>
  18. //You may derive a class from CComModule and use it if you want to override
  19. //something, but do not change the name of _Module
  20. class CExeModule : public CComModule
  21. {
  22. public:
  23. LONG Unlock();
  24. DWORD dwThreadID;
  25. };
  26. extern CExeModule _Module;
  27. #include <atlcom.h>
  28. #include <atlwin.h>
  29. #include "globals.h"
  30. #include <sti.h>
  31. #include <stilib.h>
  32. #include <stireg.h>
  33. #include <stisvc.h>
  34. #include <stiapi.h>
  35. #include <stierr.h>
  36. #include <stiregi.h>
  37. #include <stidebug.h>
  38. #include <regentry.h>
  39. //
  40. //
  41. //
  42. //
  43. // Auto-synchronization helper class
  44. //
  45. class TAKE_CRITSEC
  46. {
  47. private:
  48. CComAutoCriticalSection & _critsec;
  49. public:
  50. TAKE_CRITSEC(CComAutoCriticalSection& critsec) : _critsec(critsec) { _critsec.Lock(); }
  51. ~TAKE_CRITSEC() {_critsec.Unlock(); }
  52. };
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_STDAFX_H__C2DEFF4F_E904_11D1_BAA7_00A02438AD48__INCLUDED)