Leaked source code of windows server 2003
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.

42 lines
1.1 KiB

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