ReactOS  0.4.14-dev-342-gdc047f9
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_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7786

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