ReactOS  0.4.15-dev-1384-g878186b
tuningspace_container.cpp File Reference
#include "precomp.h"
Include dependency graph for tuningspace_container.cpp:

Go to the source code of this file.

Classes

class  CTuningSpaceContainer
 

Macros

#define _FORCENAMELESSUNION
 

Functions

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

Macro Definition Documentation

◆ _FORCENAMELESSUNION

#define _FORCENAMELESSUNION

Definition at line 9 of file tuningspace_container.cpp.

Function Documentation

◆ CTuningSpaceContainer_fnConstructor()

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

Definition at line 245 of file tuningspace_container.cpp.

249 {
250  // construct device control
251  CTuningSpaceContainer * provider = new CTuningSpaceContainer();
252 
253 #ifdef MSVIDCTL_TRACE
255  LPOLESTR lpstr;
257  swprintf(Buffer, L"CTuningSpaceContainer_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
259 #endif
260 
261  if (!provider)
262  return E_OUTOFMEMORY;
263 
264  if (FAILED(provider->QueryInterface(riid, ppv)))
265  {
266  /* not supported */
267  delete provider;
268  return E_NOINTERFACE;
269  }
270 
271  return NOERROR;
272 }
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static LPOLESTR
Definition: stg_prop.c:27
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
Definition: bufpool.h:45
_In_ PUNKNOWN pUnknown
Definition: drmk.h:76
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MAX_PATH
Definition: compat.h:34
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
static LPCSTR lpstr
Definition: font.c:51
STDMETHODIMP QueryInterface(REFIID InterfaceId, PVOID *Interface)
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412