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.

73 lines
2.3 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. int m_nCount;
  18. BOOL m_fOpen;
  19. public:
  20. COleObject::COleObject(CSimpSvrObj FAR * lpSimpSvrObj)
  21. {
  22. m_lpObj = lpSimpSvrObj;
  23. m_nCount = 0;
  24. m_fOpen = FALSE;
  25. };
  26. COleObject::~COleObject()
  27. {
  28. };
  29. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  30. STDMETHODIMP_(ULONG) AddRef ();
  31. STDMETHODIMP_(ULONG) Release ();
  32. STDMETHODIMP SetClientSite (LPOLECLIENTSITE pClientSite);
  33. STDMETHODIMP Advise (LPADVISESINK pAdvSink, DWORD FAR* pdwConnection);
  34. STDMETHODIMP SetHostNames ( LPCSTR szContainerApp, LPCSTR szContainerObj);
  35. STDMETHODIMP DoVerb ( LONG iVerb,
  36. LPMSG lpmsg,
  37. LPOLECLIENTSITE pActiveSite,
  38. LONG lindex,
  39. HWND hwndParent,
  40. LPCRECT lprcPosRect);
  41. STDMETHODIMP GetExtent ( DWORD dwDrawAspect, LPSIZEL lpsizel);
  42. STDMETHODIMP Update () ;
  43. STDMETHODIMP Close ( DWORD dwSaveOption) ;
  44. STDMETHODIMP Unadvise ( DWORD dwConnection);
  45. STDMETHODIMP EnumVerbs ( LPENUMOLEVERB FAR* ppenumOleVerb) ;
  46. STDMETHODIMP GetClientSite ( LPOLECLIENTSITE FAR* ppClientSite);
  47. STDMETHODIMP SetMoniker ( DWORD dwWhichMoniker, LPMONIKER pmk);
  48. STDMETHODIMP GetMoniker ( DWORD dwAssign, DWORD dwWhichMoniker,
  49. LPMONIKER FAR* ppmk);
  50. STDMETHODIMP InitFromData ( LPDATAOBJECT pDataObject,
  51. BOOL fCreation,
  52. DWORD dwReserved);
  53. STDMETHODIMP GetClipboardData ( DWORD dwReserved,
  54. LPDATAOBJECT FAR* ppDataObject);
  55. STDMETHODIMP IsUpToDate ();
  56. STDMETHODIMP GetUserClassID ( CLSID FAR* pClsid);
  57. STDMETHODIMP GetUserType ( DWORD dwFormOfType, LPSTR FAR* pszUserType);
  58. STDMETHODIMP SetExtent ( DWORD dwDrawAspect, LPSIZEL lpsizel);
  59. STDMETHODIMP EnumAdvise ( LPENUMSTATDATA FAR* ppenumAdvise);
  60. STDMETHODIMP GetMiscStatus ( DWORD dwAspect, DWORD FAR* pdwStatus);
  61. STDMETHODIMP SetColorScheme ( LPLOGPALETTE lpLogpal);
  62. void OpenEdit(LPOLECLIENTSITE pActiveSite);
  63. };
  64. #endif