ReactOS  0.4.14-dev-854-gb9426a3
tunerequest.cpp File Reference
#include "precomp.h"
Include dependency graph for tunerequest.cpp:

Go to the source code of this file.

Classes

class  CTuneRequest
 

Functions

HRESULT WINAPI CTuneRequest_fnConstructor (IUnknown *pUnknown, ITuningSpace *TuningSpace, REFIID riid, LPVOID *ppv)
 

Function Documentation

◆ CTuneRequest_fnConstructor()

HRESULT WINAPI CTuneRequest_fnConstructor ( IUnknown pUnknown,
ITuningSpace TuningSpace,
REFIID  riid,
LPVOID ppv 
)

Definition at line 303 of file tunerequest.cpp.

308 {
309  // construct device control
310  CTuneRequest * request = new CTuneRequest(TuningSpace);
311 
312 #ifdef MSVIDCTL_TRACE
314  LPOLESTR lpstr;
316  swprintf(Buffer, L"CTuneRequest_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
318 #endif
319 
320  if (!request)
321  return E_OUTOFMEMORY;
322 
323  if (FAILED(request->QueryInterface(riid, ppv)))
324  {
325  /* not supported */
326  delete request;
327  return E_NOINTERFACE;
328  }
329 
330  return NOERROR;
331 }
#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
Definition: tftpd.h:85
static LPCSTR lpstr
Definition: font.c:51
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412

Referenced by CTuningSpace::CreateTuneRequest().