ReactOS 0.4.16-dev-297-gc569aee
enumtuningspaces.cpp File Reference
#include "precomp.h"
Include dependency graph for enumtuningspaces.cpp:

Go to the source code of this file.

Classes

class  CEnumTuningSpaces
 

Functions

HRESULT WINAPI CEnumTuningSpaces_fnConstructor (IUnknown *pUnknown, REFIID riid, LPVOID *ppv)
 

Function Documentation

◆ CEnumTuningSpaces_fnConstructor()

HRESULT WINAPI CEnumTuningSpaces_fnConstructor ( IUnknown pUnknown,
REFIID  riid,
LPVOID ppv 
)

Definition at line 114 of file enumtuningspaces.cpp.

118{
119 // construct device control
120 CEnumTuningSpaces * tuningspaces = new CEnumTuningSpaces();
121
122#ifdef MSVIDCTL_TRACE
126 swprintf(Buffer, L"CEnumTuningSpaces_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
128#endif
129
130 if (!tuningspaces)
131 return E_OUTOFMEMORY;
132
133 if (FAILED(tuningspaces->QueryInterface(riid, ppv)))
134 {
135 /* not supported */
136 delete tuningspaces;
137 return E_NOINTERFACE;
138 }
139
140 return NOERROR;
141}
Definition: bufpool.h:45
STDMETHODIMP QueryInterface(REFIID InterfaceId, PVOID *Interface)
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define MAX_PATH
Definition: compat.h:34
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412
#define swprintf
Definition: precomp.h:40
_In_ PUNKNOWN pUnknown
Definition: drmk.h:76
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define FAILED(hr)
Definition: intsafe.h:51
static LPCSTR lpstr
Definition: font.c:51
static LPOLESTR
Definition: stg_prop.c:27
#define L(x)
Definition: ntvdm.h:50
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by CTuningSpaceContainer::get_EnumTuningSpaces().