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.

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