ReactOS 0.4.15-dev-8241-g63935f8
displayattributemgr.c File Reference
#include "wine/debug.h"
#include "winbase.h"
#include "winreg.h"
#include "shlwapi.h"
#include "msctf.h"
#include "msctf_internal.h"
Include dependency graph for displayattributemgr.c:

Go to the source code of this file.

Classes

struct  tagDisplayAttributeMgr
 

Macros

#define COBJMACROS
 

Typedefs

typedef struct tagDisplayAttributeMgr DisplayAttributeMgr
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (msctf)
 
static DisplayAttributeMgrimpl_from_ITfDisplayAttributeMgr (ITfDisplayAttributeMgr *iface)
 
static void DisplayAttributeMgr_Destructor (DisplayAttributeMgr *This)
 
static HRESULT WINAPI DisplayAttributeMgr_QueryInterface (ITfDisplayAttributeMgr *iface, REFIID iid, LPVOID *ppvOut)
 
static ULONG WINAPI DisplayAttributeMgr_AddRef (ITfDisplayAttributeMgr *iface)
 
static ULONG WINAPI DisplayAttributeMgr_Release (ITfDisplayAttributeMgr *iface)
 
static HRESULT WINAPI DisplayAttributeMgr_OnUpdateInfo (ITfDisplayAttributeMgr *iface)
 
static HRESULT WINAPI DisplayAttributeMgr_EnumDisplayAttributeInfo (ITfDisplayAttributeMgr *iface, IEnumTfDisplayAttributeInfo **ppEnum)
 
static HRESULT WINAPI DisplayAttributeMgr_GetDisplayAttributeInfo (ITfDisplayAttributeMgr *iface, REFGUID guid, ITfDisplayAttributeInfo **ppInfo, CLSID *pclsidOwner)
 
HRESULT DisplayAttributeMgr_Constructor (IUnknown *pUnkOuter, IUnknown **ppOut)
 

Variables

static const ITfDisplayAttributeMgrVtbl DisplayAttributeMgrVtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file displayattributemgr.c.

Typedef Documentation

◆ DisplayAttributeMgr

Function Documentation

◆ DisplayAttributeMgr_AddRef()

static ULONG WINAPI DisplayAttributeMgr_AddRef ( ITfDisplayAttributeMgr iface)
static

Definition at line 72 of file displayattributemgr.c.

73{
75 return InterlockedIncrement(&This->refCount);
76}
#define InterlockedIncrement
Definition: armddk.h:53
static DisplayAttributeMgr * impl_from_ITfDisplayAttributeMgr(ITfDisplayAttributeMgr *iface)

◆ DisplayAttributeMgr_Constructor()

HRESULT DisplayAttributeMgr_Constructor ( IUnknown pUnkOuter,
IUnknown **  ppOut 
)

Definition at line 127 of file displayattributemgr.c.

128{
130 if (pUnkOuter)
132
134 if (This == NULL)
135 return E_OUTOFMEMORY;
136
137 This->ITfDisplayAttributeMgr_iface.lpVtbl = &DisplayAttributeMgrVtbl;
138 This->refCount = 1;
139
140 *ppOut = (IUnknown *)&This->ITfDisplayAttributeMgr_iface;
141 TRACE("returning %p\n", *ppOut);
142 return S_OK;
143}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const ITfDisplayAttributeMgrVtbl DisplayAttributeMgrVtbl
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define S_OK
Definition: intsafe.h:52
#define TRACE(s)
Definition: solgame.cpp:4
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662

◆ DisplayAttributeMgr_Destructor()

static void DisplayAttributeMgr_Destructor ( DisplayAttributeMgr This)
static

Definition at line 45 of file displayattributemgr.c.

46{
47 TRACE("destroying %p\n", This);
48
50}
#define HeapFree(x, y, z)
Definition: compat.h:735

Referenced by DisplayAttributeMgr_Release().

◆ DisplayAttributeMgr_EnumDisplayAttributeInfo()

static HRESULT WINAPI DisplayAttributeMgr_EnumDisplayAttributeInfo ( ITfDisplayAttributeMgr iface,
IEnumTfDisplayAttributeInfo **  ppEnum 
)
static

Definition at line 101 of file displayattributemgr.c.

102{
104
105 FIXME("STUB:(%p)\n",This);
106 return E_NOTIMPL;
107}
#define FIXME(fmt,...)
Definition: debug.h:114
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ DisplayAttributeMgr_GetDisplayAttributeInfo()

static HRESULT WINAPI DisplayAttributeMgr_GetDisplayAttributeInfo ( ITfDisplayAttributeMgr iface,
REFGUID  guid,
ITfDisplayAttributeInfo **  ppInfo,
CLSID pclsidOwner 
)
static

Definition at line 109 of file displayattributemgr.c.

110{
112
113 FIXME("STUB:(%p)\n",This);
114 return E_NOTIMPL;
115}

◆ DisplayAttributeMgr_OnUpdateInfo()

static HRESULT WINAPI DisplayAttributeMgr_OnUpdateInfo ( ITfDisplayAttributeMgr iface)
static

Definition at line 93 of file displayattributemgr.c.

94{
96
97 FIXME("STUB:(%p)\n",This);
98 return E_NOTIMPL;
99}

◆ DisplayAttributeMgr_QueryInterface()

static HRESULT WINAPI DisplayAttributeMgr_QueryInterface ( ITfDisplayAttributeMgr iface,
REFIID  iid,
LPVOID ppvOut 
)
static

Definition at line 52 of file displayattributemgr.c.

53{
55 *ppvOut = NULL;
56
57 if (IsEqualIID(iid, &IID_IUnknown) || IsEqualIID(iid, &IID_ITfDisplayAttributeMgr))
58 {
59 *ppvOut = &This->ITfDisplayAttributeMgr_iface;
60 }
61
62 if (*ppvOut)
63 {
64 ITfDisplayAttributeMgr_AddRef(iface);
65 return S_OK;
66 }
67
68 WARN("unsupported interface: %s\n", debugstr_guid(iid));
69 return E_NOINTERFACE;
70}
const GUID IID_IUnknown
#define WARN(fmt,...)
Definition: debug.h:115
#define debugstr_guid
Definition: kernel32.h:35
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ DisplayAttributeMgr_Release()

static ULONG WINAPI DisplayAttributeMgr_Release ( ITfDisplayAttributeMgr iface)
static

Definition at line 78 of file displayattributemgr.c.

79{
81 ULONG ret;
82
83 ret = InterlockedDecrement(&This->refCount);
84 if (ret == 0)
86 return ret;
87}
#define InterlockedDecrement
Definition: armddk.h:52
static void DisplayAttributeMgr_Destructor(DisplayAttributeMgr *This)
uint32_t ULONG
Definition: typedefs.h:59
int ret

◆ impl_from_ITfDisplayAttributeMgr()

static DisplayAttributeMgr * impl_from_ITfDisplayAttributeMgr ( ITfDisplayAttributeMgr iface)
inlinestatic

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msctf  )

Variable Documentation

◆ DisplayAttributeMgrVtbl

const ITfDisplayAttributeMgrVtbl DisplayAttributeMgrVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI DisplayAttributeMgr_GetDisplayAttributeInfo(ITfDisplayAttributeMgr *iface, REFGUID guid, ITfDisplayAttributeInfo **ppInfo, CLSID *pclsidOwner)
static ULONG WINAPI DisplayAttributeMgr_Release(ITfDisplayAttributeMgr *iface)
static ULONG WINAPI DisplayAttributeMgr_AddRef(ITfDisplayAttributeMgr *iface)
static HRESULT WINAPI DisplayAttributeMgr_EnumDisplayAttributeInfo(ITfDisplayAttributeMgr *iface, IEnumTfDisplayAttributeInfo **ppEnum)
static HRESULT WINAPI DisplayAttributeMgr_OnUpdateInfo(ITfDisplayAttributeMgr *iface)
static HRESULT WINAPI DisplayAttributeMgr_QueryInterface(ITfDisplayAttributeMgr *iface, REFIID iid, LPVOID *ppvOut)

Definition at line 117 of file displayattributemgr.c.

Referenced by DisplayAttributeMgr_Constructor().