ReactOS 0.4.16-dev-106-g10b08aa
ethernetfilter.cpp File Reference
#include "precomp.h"
Include dependency graph for ethernetfilter.cpp:

Go to the source code of this file.

Classes

class  CEthernetFilter
 

Functions

HRESULT WINAPI CEthernetFilter_fnConstructor (IBDA_NetworkProvider *pNetworkProvider, REFIID riid, LPVOID *ppv)
 

Function Documentation

◆ CEthernetFilter_fnConstructor()

HRESULT WINAPI CEthernetFilter_fnConstructor ( IBDA_NetworkProvider pNetworkProvider,
REFIID  riid,
LPVOID ppv 
)

Definition at line 151 of file ethernetfilter.cpp.

155{
156 CEthernetFilter * filter = new CEthernetFilter(pNetworkProvider);
157
158 if (!filter)
159 return E_OUTOFMEMORY;
160
161 if (FAILED(filter->QueryInterface(riid, ppv)))
162 {
163 /* not supported */
164 delete filter;
165 return E_NOINTERFACE;
166 }
167
168 return NOERROR;
169}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: glext.h:7005
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