ReactOS  0.4.14-dev-552-g2fad488
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 }
static DisplayAttributeMgr * impl_from_ITfDisplayAttributeMgr(ITfDisplayAttributeMgr *iface)
#define InterlockedIncrement
Definition: armddk.h:53

◆ DisplayAttributeMgr_Constructor()

HRESULT DisplayAttributeMgr_Constructor ( IUnknown pUnkOuter,
IUnknown **  ppOut 
)

Definition at line 127 of file displayattributemgr.c.

128 {
130  if (pUnkOuter)
131  return CLASS_E_NOAGGREGATION;
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 }
static const ITfDisplayAttributeMgrVtbl DisplayAttributeMgrVtbl
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662
#define S_OK
Definition: intsafe.h:59

◆ 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 TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
#define HeapFree(x, y, z)
Definition: compat.h:402

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 }
static DisplayAttributeMgr * impl_from_ITfDisplayAttributeMgr(ITfDisplayAttributeMgr *iface)
#define FIXME(fmt,...)
Definition: debug.h:110
#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 }
static DisplayAttributeMgr * impl_from_ITfDisplayAttributeMgr(ITfDisplayAttributeMgr *iface)
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
static DisplayAttributeMgr * impl_from_ITfDisplayAttributeMgr(ITfDisplayAttributeMgr *iface)
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h: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 }
#define E_NOINTERFACE
Definition: winerror.h:2364
#define WARN(fmt,...)
Definition: debug.h:111
static DisplayAttributeMgr * impl_from_ITfDisplayAttributeMgr(ITfDisplayAttributeMgr *iface)
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

◆ 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 }
static DisplayAttributeMgr * impl_from_ITfDisplayAttributeMgr(ITfDisplayAttributeMgr *iface)
int ret
#define InterlockedDecrement
Definition: armddk.h:52
unsigned int ULONG
Definition: retypes.h:1
static void DisplayAttributeMgr_Destructor(DisplayAttributeMgr *This)

◆ impl_from_ITfDisplayAttributeMgr()

static DisplayAttributeMgr* impl_from_ITfDisplayAttributeMgr ( ITfDisplayAttributeMgr iface)
inlinestatic

Definition at line 40 of file displayattributemgr.c.

41 {
42  return CONTAINING_RECORD(iface, DisplayAttributeMgr, ITfDisplayAttributeMgr_iface);
43 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by DisplayAttributeMgr_AddRef(), DisplayAttributeMgr_EnumDisplayAttributeInfo(), DisplayAttributeMgr_GetDisplayAttributeInfo(), DisplayAttributeMgr_OnUpdateInfo(), DisplayAttributeMgr_QueryInterface(), and DisplayAttributeMgr_Release().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msctf  )

Variable Documentation

◆ DisplayAttributeMgrVtbl

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

Definition at line 117 of file displayattributemgr.c.

Referenced by DisplayAttributeMgr_Constructor().