ReactOS 0.4.15-dev-7670-g69b08be
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 (std::vector< IPin * > Pins, REFIID riid, LPVOID *ppv)
 

Function Documentation

◆ CEnumPins_fnConstructor()

HRESULT WINAPI CEnumPins_fnConstructor ( std::vector< IPin * >  Pins,
REFIID  riid,
LPVOID ppv 
)

Definition at line 151 of file enumpins.cpp.

155{
156 CEnumPins * handler = new CEnumPins(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:7482
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

Referenced by CKsProxy::EnumPins(), and CNetworkProvider::EnumPins().