diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/oleutest/simpcntr/iocs.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/oleutest/simpcntr/iocs.h')
-rw-r--r-- | private/oleutest/simpcntr/iocs.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/private/oleutest/simpcntr/iocs.h b/private/oleutest/simpcntr/iocs.h new file mode 100644 index 000000000..1bd9f66b5 --- /dev/null +++ b/private/oleutest/simpcntr/iocs.h @@ -0,0 +1,44 @@ +//********************************************************************** +// File name: IOCS.H +// +// Definition of COleClientSite +// +// Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved. +//********************************************************************** +#if !defined( _IOCS_H_ ) +#define _IOCS_H_ + +#include <assert.h> + +class CSimpleSite; + +interface COleClientSite : public IOleClientSite +{ + CSimpleSite FAR * m_pSite; + + COleClientSite(CSimpleSite FAR * pSite) + { + TestDebugOut(TEXT("In IOCS's constructor\r\n")); + m_pSite = pSite; + } + + ~COleClientSite() + { + TestDebugOut(TEXT("In IOCS's destructor\r\n")); + } + + STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj); + STDMETHODIMP_(ULONG) AddRef(); + STDMETHODIMP_(ULONG) Release(); + + // *** IOleClientSite methods *** + STDMETHODIMP SaveObject(); + STDMETHODIMP GetMoniker(DWORD dwAssign, DWORD dwWhichMoniker, + LPMONIKER FAR* ppmk); + STDMETHODIMP GetContainer(LPOLECONTAINER FAR* ppContainer); + STDMETHODIMP ShowObject(); + STDMETHODIMP OnShowWindow(BOOL fShow); + STDMETHODIMP RequestNewObjectLayout(); +}; + +#endif |