diff options
Diffstat (limited to 'private/oleauto/tests/common/cunk.h')
-rw-r--r-- | private/oleauto/tests/common/cunk.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/private/oleauto/tests/common/cunk.h b/private/oleauto/tests/common/cunk.h new file mode 100644 index 000000000..b9f92f713 --- /dev/null +++ b/private/oleauto/tests/common/cunk.h @@ -0,0 +1,33 @@ +/*** +*cunk.h +* +* Copyright (C) 1992-93, Microsoft Corporation. All Rights Reserved. +* Information Contained Herein Is Proprietary and Confidential. +* +*Purpose: +* Declares a trivial class that implements IUnknown. +* +*Revision History: +* +* [00] 10-Apr-92 bradlo: Created. +* +*Implementation Notes: +* +*****************************************************************************/ + +class CUnk : public IUnknown { +public: + static HRESULT Create(IUnknown FAR* FAR* ppunk); + + STDMETHOD(QueryInterface)(REFIID riid, void FAR* FAR* ppv); + STDMETHOD_(unsigned long, AddRef)(void); + STDMETHOD_(unsigned long, Release)(void); + + CUnk::CUnk(){ + m_refs = 0; + } + +private: + + unsigned long m_refs; +}; |