ReactOS 0.4.15-dev-8096-ga0eec98
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
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}
Definition: bufpool.h:45
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define MAX_PATH
Definition: compat.h:34
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7482
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412
#define swprintf
Definition: precomp.h:40
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
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
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354
__wchar_t WCHAR
Definition: xmlstorage.h:180

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