ReactOS 0.4.15-dev-7674-gc0b4db1
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 (IUnknown *pUnknown, ULONG MediaTypeCount, AM_MEDIA_TYPE *MediaTypes, REFIID riid, LPVOID *ppv)
 

Function Documentation

◆ CEnumMediaTypes_fnConstructor()

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

Definition at line 157 of file enum_mediatypes.cpp.

163{
164 CEnumMediaTypes * handler = new CEnumMediaTypes(MediaTypeCount, MediaTypes);
165
166#ifdef MSDVBNP_TRACE
170 swprintf(Buffer, L"CEnumMediaTypes_fnConstructor riid %s pUnknown %p\n", lpstr, pUnknown);
172#endif
173
174 if (!handler)
175 {
176 CoTaskMemFree(MediaTypes);
177 return E_OUTOFMEMORY;
178 }
179
180 if (FAILED(handler->QueryInterface(riid, ppv)))
181 {
182 /* not supported */
183 delete handler;
184 return E_NOINTERFACE;
185 }
186
187 return NOERROR;
188}
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
_In_ PUNKNOWN pUnknown
Definition: drmk.h:76
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