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.

71 lines
2.5 KiB

  1. //**********************************************************************
  2. // File name: ioo.h
  3. //
  4. // Definition of COleObject
  5. //
  6. // Copyright (c) 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _IOO_H_)
  9. #define _IOO_H_
  10. #include <ole2.h>
  11. #include "obj.h"
  12. class CSimpSvrObj;
  13. interface COleObject : public IOleObject
  14. {
  15. private:
  16. CSimpSvrObj FAR * m_lpObj;
  17. BOOL m_fOpen;
  18. public:
  19. COleObject::COleObject(CSimpSvrObj FAR * lpSimpSvrObj)
  20. {
  21. m_lpObj = lpSimpSvrObj;
  22. m_fOpen = FALSE;
  23. };
  24. COleObject::~COleObject()
  25. {
  26. };
  27. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  28. STDMETHODIMP_(ULONG) AddRef ();
  29. STDMETHODIMP_(ULONG) Release ();
  30. STDMETHODIMP SetClientSite (LPOLECLIENTSITE pClientSite);
  31. STDMETHODIMP Advise (LPADVISESINK pAdvSink, DWORD FAR* pdwConnection);
  32. STDMETHODIMP SetHostNames ( LPCOLESTR szContainerApp, LPCOLESTR szContainerObj);
  33. STDMETHODIMP DoVerb ( LONG iVerb,
  34. LPMSG lpmsg,
  35. LPOLECLIENTSITE pActiveSite,
  36. LONG lindex,
  37. HWND hwndParent,
  38. LPCRECT lprcPosRect);
  39. STDMETHODIMP GetExtent ( DWORD dwDrawAspect, LPSIZEL lpsizel);
  40. STDMETHODIMP Update () ;
  41. STDMETHODIMP Close ( DWORD dwSaveOption) ;
  42. STDMETHODIMP Unadvise ( DWORD dwConnection);
  43. STDMETHODIMP EnumVerbs ( LPENUMOLEVERB FAR* ppenumOleVerb) ;
  44. STDMETHODIMP GetClientSite ( LPOLECLIENTSITE FAR* ppClientSite);
  45. STDMETHODIMP SetMoniker ( DWORD dwWhichMoniker, LPMONIKER pmk);
  46. STDMETHODIMP GetMoniker ( DWORD dwAssign, DWORD dwWhichMoniker,
  47. LPMONIKER FAR* ppmk);
  48. STDMETHODIMP InitFromData ( LPDATAOBJECT pDataObject,
  49. BOOL fCreation,
  50. DWORD dwReserved);
  51. STDMETHODIMP GetClipboardData ( DWORD dwReserved,
  52. LPDATAOBJECT FAR* ppDataObject);
  53. STDMETHODIMP IsUpToDate ();
  54. STDMETHODIMP GetUserClassID ( CLSID FAR* pClsid);
  55. STDMETHODIMP GetUserType ( DWORD dwFormOfType, LPOLESTR FAR* pszUserType);
  56. STDMETHODIMP SetExtent ( DWORD dwDrawAspect, LPSIZEL lpsizel);
  57. STDMETHODIMP EnumAdvise ( LPENUMSTATDATA FAR* ppenumAdvise);
  58. STDMETHODIMP GetMiscStatus ( DWORD dwAspect, DWORD FAR* pdwStatus);
  59. STDMETHODIMP SetColorScheme ( LPLOGPALETTE lpLogpal);
  60. void OpenEdit(LPOLECLIENTSITE pActiveSite);
  61. };
  62. #endif
  63.