ReactOS 0.4.15-dev-8408-g466a198
ipv4.cpp File Reference
#include "precomp.h"
Include dependency graph for ipv4.cpp:

Go to the source code of this file.

Classes

class  CIPV4Filter
 

Functions

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

Function Documentation

◆ CIPV4Filter_fnConstructor()

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

Definition at line 152 of file ipv4.cpp.

156{
157 CIPV4Filter * filter = new CIPV4Filter(pNetworkProvider);
158
159 if (!filter)
160 return E_OUTOFMEMORY;
161
162 if (FAILED(filter->QueryInterface(riid, ppv)))
163 {
164 /* not supported */
165 delete filter;
166 return E_NOINTERFACE;
167 }
168
169 return NOERROR;
170}
#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

Referenced by CNetworkProvider::QueryInterface().