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.

91 lines
2.0 KiB

  1. /******************************************************************************
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. StdAfx.h
  5. Abstract:
  6. Precompiled header.
  7. Revision History:
  8. Davide Massarenti (Dmassare) 03/16/2000
  9. created
  10. ******************************************************************************/
  11. #if !defined(AFX_STDAFX_H__6877C875_4E31_4E1C_8AC2_024A50599D66__INCLUDED_)
  12. #define AFX_STDAFX_H__6877C875_4E31_4E1C_8AC2_024A50599D66__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. #define STRICT
  17. #ifndef _WIN32_WINNT
  18. #define _WIN32_WINNT 0x0400
  19. #endif
  20. #include <atlbase.h>
  21. extern CComModule _Module;
  22. #include <stdio.h>
  23. #include <stdlib.h>
  24. #include <float.h>
  25. #include <HCP_trace.h>
  26. #include <MPC_utils.h>
  27. #include <MPC_xml.h>
  28. #include <MPC_COM.h>
  29. #include <MPC_logging.h>
  30. #include <resource.h>
  31. #include <HCApiLib.h>
  32. class ATL_NO_VTABLE CPCHLaunch : // Hungarian: pchl
  33. public CComObjectRootEx<MPC::CComSafeMultiThreadModel>,
  34. public CComCoClass<CPCHLaunch, &CLSID_PCHLaunch>,
  35. public IPCHLaunch
  36. {
  37. HCAPI::CmdData m_data;
  38. HCAPI::Locator m_loc;
  39. public:
  40. DECLARE_REGISTRY_RESOURCEID(IDR_HCAPI)
  41. DECLARE_PROTECT_FINAL_CONSTRUCT()
  42. BEGIN_COM_MAP(CPCHLaunch)
  43. COM_INTERFACE_ENTRY(IPCHLaunch)
  44. END_COM_MAP()
  45. public:
  46. CPCHLaunch();
  47. // IPCHLaunch
  48. STDMETHOD(SetMode)( /*[in]*/ DWORD dwFlags );
  49. STDMETHOD(SetParentWindow)( /*[in]*/ HWND hwndParent );
  50. STDMETHOD(SetSizeInfo)( /*[in]*/ LONG lX, /*[in]*/ LONG lY, /*[in]*/ LONG lWidth, /*[in]*/ LONG lHeight );
  51. STDMETHOD(SetContext)( /*[in]*/ BSTR bstrCtxName, /*[in]*/ BSTR bstrCtxInfo );
  52. STDMETHOD(DisplayTopic)( /*[in]*/ BSTR bstrURL );
  53. STDMETHOD(DisplayError)( /*[in]*/ REFCLSID rclsid );
  54. ////////////////////
  55. STDMETHOD(IsOpen)( /*[out]*/ BOOL *pVal );
  56. STDMETHOD(PopUp)();
  57. STDMETHOD(Close)();
  58. STDMETHOD(WaitForTermination)( /*[in]*/ DWORD dwTimeout );
  59. };
  60. #endif // !defined(AFX_STDAFX_H__6877C875_4E31_4E1C_8AC2_024A50599D66__INCLUDED)