ReactOS  0.4.15-dev-313-g8fde48b
scanningtuner.cpp File Reference
#include "precomp.h"
Include dependency graph for scanningtuner.cpp:

Go to the source code of this file.

Classes

class  CScanningTunner
 

Functions

HRESULT WINAPI CScanningTunner_fnConstructor (std::vector< IUnknown * > &DeviceFilter, REFIID riid, LPVOID *ppv)
 

Function Documentation

◆ CScanningTunner_fnConstructor()

HRESULT WINAPI CScanningTunner_fnConstructor ( std::vector< IUnknown * > &  DeviceFilter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 696 of file scanningtuner.cpp.

700 {
701  CScanningTunner * handler = new CScanningTunner(DeviceFilter);
702 
703 #ifdef MSDVBNP_TRACE
705  LPOLESTR lpstr;
707  swprintf(Buffer, L"CScanningTunner_fnConstructor riid %s\n", lpstr);
709 #endif
710 
711  if (!handler)
712  return E_OUTOFMEMORY;
713 
714  if (FAILED(handler->QueryInterface(riid, ppv)))
715  {
716  /* not supported */
717  delete handler;
718  return E_NOINTERFACE;
719  }
720 
721  return NOERROR;
722 }
#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
__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 LPCSTR lpstr
Definition: font.c:51
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7786
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412

Referenced by CNetworkProvider::QueryInterface().