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.
 
 
 
 
 
 

41 lines
923 B

//
// funcprv.h
//
#ifndef FNPRBASE_H
#define FNPRBASE_H
#include "private.h"
class __declspec(novtable) CFunctionProviderBase : public ITfFunctionProvider
{
public:
CFunctionProviderBase(TfClientId tid);
virtual ~CFunctionProviderBase();
//
// IUnknown methods
//
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
//
// ITfFunctionProvider
//
STDMETHODIMP GetType(GUID *pguid);
STDMETHODIMP GetDescription(BSTR *pbstrDesc);
STDMETHODIMP GetFunction(REFGUID rguid, REFIID riid, IUnknown **ppunk);
BOOL Init(REFGUID guidType, WCHAR *pszDesc);
HRESULT _Advise(ITfThreadMgr *ptim);
HRESULT _Unadvise(ITfThreadMgr *ptim);
private:
TfClientId _tid;
GUID _guidType;
BSTR _bstrDesc;
long _cRef;
};
#endif // FNPRBASE_H