ReactOS  0.4.15-dev-326-g1c504f4
pin.cpp File Reference
#include "precomp.h"
Include dependency graph for pin.cpp:

Go to the source code of this file.

Classes

class  CPin
 

Functions

HRESULT WINAPI CPin_fnConstructor (IUnknown *pUnknown, IBaseFilter *ParentFilter, REFIID riid, LPVOID *ppv)
 

Variables

const GUID KSDATAFORMAT_TYPE_BDA_ANTENNA = {0x71985f41, 0x1ca1, 0x11d3, {0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0}}
 
const GUID GUID_NULL = {0x00000000L, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}
 

Function Documentation

◆ CPin_fnConstructor()

HRESULT WINAPI CPin_fnConstructor ( IUnknown pUnknown,
IBaseFilter ParentFilter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 318 of file pin.cpp.

323 {
324  CPin * handler = new CPin(ParentFilter);
325 
326 #ifdef MSDVBNP_TRACE
328  LPOLESTR lpstr;
330  swprintf(Buffer, L"CPin_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
332 #endif
333 
334  if (!handler)
335  return E_OUTOFMEMORY;
336 
337  if (FAILED(handler->QueryInterface(riid, ppv)))
338  {
339  /* not supported */
340  delete handler;
341  return E_NOINTERFACE;
342  }
343 
344  return NOERROR;
345 }
#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: pin.cpp:16
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::EnumPins().

Variable Documentation

◆ GUID_NULL

const GUID GUID_NULL = {0x00000000L, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}

Definition at line 13 of file pin.cpp.

◆ KSDATAFORMAT_TYPE_BDA_ANTENNA

const GUID KSDATAFORMAT_TYPE_BDA_ANTENNA = {0x71985f41, 0x1ca1, 0x11d3, {0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0}}

Definition at line 12 of file pin.cpp.

Referenced by CPin::CPin(), and CPin::EnumMediaTypes().