ReactOS  0.4.14-dev-998-g623dd26
tuningspace.cpp File Reference
#include "precomp.h"
Include dependency graph for tuningspace.cpp:

Go to the source code of this file.

Classes

class  CTuningSpace
 

Functions

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

Variables

const GUID CLSID_DVBTNetworkProvider = {0x216c62df, 0x6d7f, 0x4e9a, {0x85, 0x71, 0x5, 0xf1, 0x4e, 0xdb, 0x76, 0x6a}}
 

Function Documentation

◆ CTuningSpace_fnConstructor()

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

Definition at line 336 of file tuningspace.cpp.

340 {
341  // construct device control
342  CTuningSpace * space = new CTuningSpace();
343 
344 #ifdef MSVIDCTL_TRACE
346  LPOLESTR lpstr;
348  swprintf(Buffer, L"CTuningSpace_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
350 #endif
351 
352  if (!space)
353  return E_OUTOFMEMORY;
354 
355  if (FAILED(space->QueryInterface(riid, ppv)))
356  {
357  /* not supported */
358  delete space;
359  return E_NOINTERFACE;
360  }
361 
362  return NOERROR;
363 }
#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:26
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
static const WCHAR space[]
Definition: ConsoleCP.c:23
static LPCSTR lpstr
Definition: font.c:51
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412

Referenced by CTuningSpaceContainer::get_Item(), and CEnumTuningSpaces::Next().

Variable Documentation

◆ CLSID_DVBTNetworkProvider

const GUID CLSID_DVBTNetworkProvider = {0x216c62df, 0x6d7f, 0x4e9a, {0x85, 0x71, 0x5, 0xf1, 0x4e, 0xdb, 0x76, 0x6a}}