ReactOS 0.4.16-dev-297-gc569aee
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
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}
Definition: bufpool.h:45
#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
Definition: tftpd.h:86
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by CTuningSpace::CreateTuneRequest().