ReactOS 0.4.15-dev-8222-g9164419
CFunctionProvider Class Reference

#include <misc.h>

Inheritance diagram for CFunctionProvider:
Collaboration diagram for CFunctionProvider:

Public Member Functions

 CFunctionProvider (_In_ TfClientId clientId)
STDMETHODIMP GetFunction (_In_ REFGUID guid, _In_ REFIID riid, _Out_ IUnknown **func) override
- Public Member Functions inherited from CFunctionProviderBase
 CFunctionProviderBase (_In_ TfClientId clientId)
virtual ~CFunctionProviderBase ()
STDMETHODIMP QueryInterface (_In_ REFIID riid, _Out_ LPVOID *ppvObj) override
 STDMETHODIMP_ (ULONG) AddRef() override
 STDMETHODIMP_ (ULONG) Release() override
STDMETHODIMP GetType (_Out_ GUID *guid) override
STDMETHODIMP GetDescription (_Out_ BSTR *desc) override
BOOL Init (_In_ REFGUID rguid, _In_ LPCWSTR psz)
- Public Member Functions inherited from ITfFunctionProvider
HRESULT GetType ([out] GUID *guid)
HRESULT GetDescription ([out] BSTR *desc)
HRESULT GetFunction ([in] REFGUID guid, [in] REFIID riid, [out, iid_is(riid)] IUnknown **func)
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
ULONG AddRef ()
ULONG Release ()

Additional Inherited Members

- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
- Protected Attributes inherited from CFunctionProviderBase
TfClientId m_clientId
GUID m_guid
BSTR m_bstr
LONG m_cRefs

Detailed Description

Definition at line 103 of file misc.h.

Constructor & Destructor Documentation

◆ CFunctionProvider()

CFunctionProvider::CFunctionProvider ( _In_ TfClientId  clientId)


Definition at line 497 of file misc.cpp.

497 : CFunctionProviderBase(clientId)
499 Init(CLSID_CAImmLayer, L"MSCTFIME::Function Provider");
#define L(x)
Definition: ntvdm.h:50

Member Function Documentation

◆ GetFunction()

STDMETHODIMP CFunctionProvider::GetFunction ( _In_ REFGUID  guid,
_In_ REFIID  riid,
_Out_ IUnknown **  func 


Definition at line 504 of file misc.cpp.

509 *func = NULL;
511 if (IsEqualGUID(guid, GUID_NULL) &&
512 IsEqualIID(riid, IID_IAImmFnDocFeed))
513 {
514 *func = new(cicNoThrow) CFnDocFeed();
515 if (*func)
516 return S_OK;
517 }
519 return E_NOINTERFACE;
#define cicNoThrow
Definition: cicbase.h:34
#define NULL
Definition: types.h:112
GLenum func
Definition: glext.h:6028
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
#define GUID_NULL
Definition: ks.h:106
const GUID * guid
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
Definition: winerror.h:2364

The documentation for this class was generated from the following files: