|
/**********************************************************************
- File Name: ServiceProvider.h
- Date: 12/7/2003 6:19:56 PM
- Author: Michael Sheinin
- Description :
Declaration of the CServiceProvider class. This class serves as a wrapper
for system (V-Studio) supplied objects. The instance of the class is passed to
the original IVsPackage object, so that we can intercept any activity originated
in the original package.
- Notes:
**********************************************************************/
#pragma once
#include <servprov.h>
class CVsRegisterEditors;
class CServiceProvider : public IServiceProvider
{
public:
CServiceProvider(void);
~CServiceProvider(void);
BOOL Attach( IServiceProvider* pSP );
// IUnknown
STDMETHODIMP QueryInterface( REFIID, LPVOID* );
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
// IServiceProvider
STDMETHODIMP QueryService( REFGUID guidService, REFIID riid, void** ppv);
protected:
IServiceProvider* m_pSP;
CVsRegisterEditors* m_pRE;
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
For the last 7 years I have developed software in real-time/embedded and MS-Windows environments for military and civil markets. I hold B.Sc. degree in computer engineering. Living in Ontario, Canada, I like hiking and traveling in general. Currently, I'm looking for employment opportunity inside the GTA.