Source code of Windows XP (NT5)
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.

46 lines
1.1 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__0B7F57F6_FFB4_4669_B827_551E77DC7212__INCLUDED_)
  5. #define AFX_STDAFX_H__0B7F57F6_FFB4_4669_B827_551E77DC7212__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #ifndef STRICT
  10. #define STRICT
  11. #endif
  12. #ifndef _WIN32_WINNT
  13. #define _WIN32_WINNT 0x0400
  14. #endif
  15. #define _ATL_APARTMENT_THREADED
  16. #include <atlbase.h>
  17. //
  18. // DCOM support (note, this must occur after atlbase.h but before anything else)
  19. //
  20. class CMyModule : public CComModule
  21. {
  22. public:
  23. CMyModule() {
  24. bServer = FALSE;
  25. punkFact = NULL;
  26. dwROC = 0;
  27. }
  28. LONG Unlock();
  29. void CheckShutdown();
  30. void KillServer();
  31. HRESULT InitServer(GUID & ClsId);
  32. bool bServer;
  33. IUnknown* punkFact;
  34. DWORD dwROC;
  35. };
  36. extern CMyModule _Module;
  37. #include <atlcom.h>
  38. //{{AFX_INSERT_LOCATION}}
  39. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  40. #endif // !defined(AFX_STDAFX_H__0B7F57F6_FFB4_4669_B827_551E77DC7212__INCLUDED)