ReactOS 0.4.16-dev-106-g10b08aa
CFunctionProvider Class Reference

#include <misc.h>

Inheritance diagram for CFunctionProvider:
Collaboration diagram for CFunctionProvider:

Public Member Functions

 CFunctionProvider (_In_ TfClientId clientId)
 @implemented
 
STDMETHODIMP GetFunction (_In_ REFGUID guid, _In_ REFIID riid, _Out_ IUnknown **func) override
 @implemented
 
- Public Member Functions inherited from CFunctionProviderBase
 CFunctionProviderBase (_In_ TfClientId clientId)
 @implemented
 
virtual ~CFunctionProviderBase ()
 @implemented
 
STDMETHODIMP QueryInterface (_In_ REFIID riid, _Out_ LPVOID *ppvObj) override
 @implemented
 
 STDMETHODIMP_ (ULONG) AddRef() override
 
 STDMETHODIMP_ (ULONG) Release() override
 
STDMETHODIMP GetType (_Out_ GUID *guid) override
 @implemented
 
STDMETHODIMP GetDescription (_Out_ BSTR *desc) override
 @implemented
 
BOOL Init (_In_ REFGUID rguid, _In_ LPCWSTR psz)
 @implemented
 
- 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)

@implemented

Definition at line 497 of file misc.cpp.

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

Member Function Documentation

◆ GetFunction()

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

@implemented

Definition at line 504 of file misc.cpp.

508{
509 *func = NULL;
510
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 }
518
519 return E_NOINTERFACE;
520}
#define cicNoThrow
Definition: cicbase.h:34
#define NULL
Definition: types.h:112
GLenum func
Definition: glext.h:6028
REFIID riid
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
#define E_NOINTERFACE
Definition: winerror.h:2364

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