ReactOS  0.4.14-dev-49-gfb4591c
enum_mediatypes.cpp File Reference
#include "precomp.h"
Include dependency graph for enum_mediatypes.cpp:

Go to the source code of this file.

Classes

class  CEnumMediaTypes
 

Functions

HRESULT WINAPI CEnumMediaTypes_fnConstructor (ULONG MediaTypeCount, AM_MEDIA_TYPE *MediaTypes, REFIID riid, LPVOID *ppv)
 

Function Documentation

◆ CEnumMediaTypes_fnConstructor()

HRESULT WINAPI CEnumMediaTypes_fnConstructor ( ULONG  MediaTypeCount,
AM_MEDIA_TYPE MediaTypes,
REFIID  riid,
LPVOID ppv 
)

Definition at line 175 of file enum_mediatypes.cpp.

180 {
181  CEnumMediaTypes * handler = new CEnumMediaTypes(MediaTypeCount, MediaTypes);
182 
183 #ifdef KSPROXY_TRACE
185  LPOLESTR lpstr;
187  swprintf(Buffer, L"CEnumMediaTypes_fnConstructor riid %s\n", lpstr);
189 #endif
190 
191  if (!handler)
192  {
193  CoTaskMemFree(MediaTypes);
194  return E_OUTOFMEMORY;
195  }
196 
197  if (FAILED(handler->QueryInterface(riid, ppv)))
198  {
199  /* not supported */
200  delete handler;
201  return E_NOINTERFACE;
202  }
203 
204  return NOERROR;
205 }
#define E_NOINTERFACE
Definition: winerror.h:2364
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:422
#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:2321

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