ReactOS 0.4.15-dev-8390-g075894b
CFunctionProviderBase Class Reference

#include <misc.h>

Inheritance diagram for CFunctionProviderBase:
Collaboration diagram for CFunctionProviderBase:

Public Member Functions

 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 ()
 

Protected Attributes

TfClientId m_clientId
 
GUID m_guid
 
BSTR m_bstr
 
LONG m_cRefs
 

Additional Inherited Members

- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 76 of file misc.h.

Constructor & Destructor Documentation

◆ CFunctionProviderBase()

CFunctionProviderBase::CFunctionProviderBase ( _In_ TfClientId  clientId)

@implemented

Definition at line 423 of file misc.cpp.

424{
425 m_clientId = clientId;
427 m_bstr = NULL;
428 m_cRefs = 1;
429}
TfClientId m_clientId
Definition: misc.h:79
#define NULL
Definition: types.h:112
#define GUID_NULL
Definition: ks.h:106

◆ ~CFunctionProviderBase()

CFunctionProviderBase::~CFunctionProviderBase ( )
virtual

@implemented

Definition at line 432 of file misc.cpp.

433{
436}
BOOLEAN DllShutdownInProgress(VOID)
Definition: misc.cpp:42
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271

Member Function Documentation

◆ GetDescription()

STDMETHODIMP CFunctionProviderBase::GetDescription ( _Out_ BSTR desc)
override

@implemented

Definition at line 488 of file misc.cpp.

489{
491 return (*desc ? S_OK : E_OUTOFMEMORY);
492}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define S_OK
Definition: intsafe.h:52
static const WCHAR desc[]
Definition: protectdata.c:36
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238

◆ GetType()

STDMETHODIMP CFunctionProviderBase::GetType ( _Out_ GUID guid)
override

@implemented

Definition at line 481 of file misc.cpp.

482{
483 *guid = m_guid;
484 return S_OK;
485}
const GUID * guid

◆ Init()

BOOL CFunctionProviderBase::Init ( _In_ REFGUID  rguid,
_In_ LPCWSTR  psz 
)

@implemented

Definition at line 440 of file misc.cpp.

443{
445 m_guid = rguid;
446 return (m_bstr != NULL);
447}

◆ QueryInterface()

STDMETHODIMP CFunctionProviderBase::QueryInterface ( _In_ REFIID  riid,
_Out_ LPVOID ppvObj 
)
override

@implemented

Definition at line 451 of file misc.cpp.

454{
455 static const QITAB c_tab[] =
456 {
458 { NULL }
459 };
460 return ::QISearch(this, c_tab, riid, ppvObj);
461}
REFIID riid
Definition: atlbase.h:39
#define QITABENT(Cthis, Ifoo)
Definition: shlwapi.h:2094

◆ STDMETHODIMP_() [1/2]

CFunctionProviderBase::STDMETHODIMP_ ( ULONG  )
override

◆ STDMETHODIMP_() [2/2]

CFunctionProviderBase::STDMETHODIMP_ ( ULONG  )
override

Member Data Documentation

◆ m_bstr

BSTR CFunctionProviderBase::m_bstr
protected

Definition at line 81 of file misc.h.

Referenced by CFunctionProviderBase(), GetDescription(), Init(), and ~CFunctionProviderBase().

◆ m_clientId

TfClientId CFunctionProviderBase::m_clientId
protected

Definition at line 79 of file misc.h.

Referenced by CFunctionProviderBase().

◆ m_cRefs

LONG CFunctionProviderBase::m_cRefs
protected

Definition at line 82 of file misc.h.

Referenced by CFunctionProviderBase(), and STDMETHODIMP_().

◆ m_guid

GUID CFunctionProviderBase::m_guid
protected

Definition at line 80 of file misc.h.

Referenced by CFunctionProviderBase(), GetType(), and Init().


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