ReactOS 0.4.16-dev-258-g81860b4
enumpins.cpp File Reference
#include "precomp.h"
Include dependency graph for enumpins.cpp:

Go to the source code of this file.

Classes

class  CEnumPins
 

Functions

HRESULT WINAPI CEnumPins_fnConstructor (IUnknown *pUnknown, ULONG NumPins, IPin **pins, REFIID riid, LPVOID *ppv)
 

Function Documentation

◆ CEnumPins_fnConstructor()

HRESULT WINAPI CEnumPins_fnConstructor ( IUnknown pUnknown,
ULONG  NumPins,
IPin **  pins,
REFIID  riid,
LPVOID ppv 
)

Definition at line 149 of file enumpins.cpp.

155{
156 CEnumPins * handler = new CEnumPins(NumPins, pins);
157
158 if (!handler)
159 return E_OUTOFMEMORY;
160
161 if (FAILED(handler->QueryInterface(riid, ppv)))
162 {
163 /* not supported */
164 delete handler;
165 return E_NOINTERFACE;
166 }
167
168 return NOERROR;
169}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7512
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define FAILED(hr)
Definition: intsafe.h:51
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354