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.

44 lines
1.2 KiB

  1. //**********************************************************************
  2. // File name: IOCS.H
  3. //
  4. // Definition of COleClientSite
  5. //
  6. // Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _IOCS_H_ )
  9. #define _IOCS_H_
  10. #include <assert.h>
  11. class CSimpleSite;
  12. interface COleClientSite : public IOleClientSite
  13. {
  14. CSimpleSite FAR * m_pSite;
  15. COleClientSite(CSimpleSite FAR * pSite)
  16. {
  17. TestDebugOut("In IOCS's constructor\r\n");
  18. m_pSite = pSite;
  19. }
  20. ~COleClientSite()
  21. {
  22. TestDebugOut("In IOCS's destructor\r\n");
  23. }
  24. STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj);
  25. STDMETHODIMP_(ULONG) AddRef();
  26. STDMETHODIMP_(ULONG) Release();
  27. // *** IOleClientSite methods ***
  28. STDMETHODIMP SaveObject();
  29. STDMETHODIMP GetMoniker(DWORD dwAssign, DWORD dwWhichMoniker,
  30. LPMONIKER FAR* ppmk);
  31. STDMETHODIMP GetContainer(LPOLECONTAINER FAR* ppContainer);
  32. STDMETHODIMP ShowObject();
  33. STDMETHODIMP OnShowWindow(BOOL fShow);
  34. STDMETHODIMP RequestNewObjectLayout();
  35. };
  36. #endif