home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / vcoledb / consumer / multiread / stdafx.h < prev   
C/C++ Source or Header  |  1998-03-26  |  1KB  |  42 lines

  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.  
  5. #if !defined(AFX_STDAFX_H__186F6FA6_7435_11D1_8F0F_000000000000__INCLUDED_)
  6. #define AFX_STDAFX_H__186F6FA6_7435_11D1_8F0F_000000000000__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #define STRICT
  13.  
  14.  
  15. #ifndef _WIN32_WINNT
  16. #define _WIN32_WINNT 0x0400
  17. #endif
  18. #define _ATL_FREE_THREADED
  19.  
  20.  
  21. #include <atlbase.h>
  22. //You may derive a class from CComModule and use it if you want to override
  23. //something, but do not change the name of _Module
  24. class CExeModule : public CComModule
  25. {
  26. public:
  27.     LONG Unlock();
  28.     DWORD dwThreadID;
  29.     HANDLE hEventShutdown;
  30.     void MonitorShutdown();
  31.     bool StartMonitor();
  32.     bool bActivity;
  33. };
  34. extern CExeModule _Module;
  35. #include <atlcom.h>
  36. #include <atlwin.h>
  37.  
  38. //{{AFX_INSERT_LOCATION}}
  39. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  40.  
  41. #endif // !defined(AFX_STDAFX_H__186F6FA6_7435_11D1_8F0F_000000000000__INCLUDED)
  42.