ReactOS 0.4.15-dev-8236-g99f0937
netcfgbindingpath_iface.c File Reference
#include "precomp.h"
Include dependency graph for netcfgbindingpath_iface.c:

Go to the source code of this file.

Classes

struct  INetCfgBindingPathImpl
 
struct  IEnumNetCfgBindingPathImpl
 

Functions

HRESULT WINAPI INetCfgBindingPath_fnQueryInterface (INetCfgBindingPath *iface, REFIID iid, LPVOID *ppvObj)
 
ULONG WINAPI INetCfgBindingPath_fnAddRef (INetCfgBindingPath *iface)
 
ULONG WINAPI INetCfgBindingPath_fnRelease (INetCfgBindingPath *iface)
 
HRESULT WINAPI INetCfgBindingPath_fnIsSamePathAs (INetCfgBindingPath *iface, INetCfgBindingPath *pPath)
 
HRESULT WINAPI INetCfgBindingPath_fnIsSubPathOf (INetCfgBindingPath *iface, INetCfgBindingPath *pPath)
 
HRESULT WINAPI INetCfgBindingPath_fnIsEnabled (INetCfgBindingPath *iface)
 
HRESULT WINAPI INetCfgBindingPath_fnEnable (INetCfgBindingPath *iface, BOOL fEnable)
 
HRESULT WINAPI INetCfgBindingPath_fnGetPathToken (INetCfgBindingPath *iface, LPWSTR *ppszwPathToken)
 
HRESULT WINAPI INetCfgBindingPath_fnGetOwner (INetCfgBindingPath *iface, INetCfgComponent **ppComponent)
 
HRESULT WINAPI INetCfgBindingPath_fnGetDepth (INetCfgBindingPath *iface, ULONG *pcInterfaces)
 
HRESULT WINAPI INetCfgBindingPath_fnEnumBindingInterfaces (INetCfgBindingPath *iface, IEnumNetCfgBindingInterface **ppenumInterface)
 
HRESULT WINAPI INetCfgBindingPath_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI IEnumNetCfgBindingPath_fnQueryInterface (IEnumNetCfgBindingPath *iface, REFIID iid, LPVOID *ppvObj)
 
ULONG WINAPI IEnumNetCfgBindingPath_fnAddRef (IEnumNetCfgBindingPath *iface)
 
ULONG WINAPI IEnumNetCfgBindingPath_fnRelease (IEnumNetCfgBindingPath *iface)
 
HRESULT WINAPI IEnumNetCfgBindingPath_fnNext (IEnumNetCfgBindingPath *iface, ULONG celt, INetCfgBindingPath **rgelt, ULONG *pceltFetched)
 
HRESULT WINAPI IEnumNetCfgBindingPath_fnSkip (IEnumNetCfgBindingPath *iface, ULONG celt)
 
HRESULT WINAPI IEnumNetCfgBindingPath_fnReset (IEnumNetCfgBindingPath *iface)
 
HRESULT WINAPI IEnumNetCfgBindingPath_fnClone (IEnumNetCfgBindingPath *iface, IEnumNetCfgBindingPath **ppenum)
 
HRESULT WINAPI IEnumNetCfgBindingPath_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, DWORD dwFlags)
 

Variables

static const INetCfgBindingPathVtbl vt_NetCfgBindingPath
 
static const IEnumNetCfgBindingPathVtbl vt_EnumNetCfgBindingPath
 

Function Documentation

◆ IEnumNetCfgBindingPath_Constructor()

HRESULT WINAPI IEnumNetCfgBindingPath_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv,
DWORD  dwFlags 
)

Definition at line 323 of file netcfgbindingpath_iface.c.

324{
326
327 if (!ppv)
328 return E_POINTER;
329
331 if (!This)
332 return E_OUTOFMEMORY;
333
334 This->ref = 1;
335 This->lpVtbl = (const IEnumNetCfgBindingPath*)&vt_EnumNetCfgBindingPath;
336#if 0
337 This->pCurrent = pItem;
338 This->pHead = pItem;
339 This->pNCfg = pNCfg;
340#endif
341
342 if (!SUCCEEDED (IEnumNetCfgBindingPath_QueryInterface((INetCfgBindingPath*)This, riid, ppv)))
343 {
345 return E_NOINTERFACE;
346 }
347
348 IEnumNetCfgBindingPath_Release((IEnumNetCfgBindingPath*)This);
349 return S_OK;
350}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:426
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
#define SUCCEEDED(hr)
Definition: intsafe.h:50
static const IEnumNetCfgBindingPathVtbl vt_EnumNetCfgBindingPath
#define IEnumNetCfgBindingPath_Release(p)
Definition: netcfgx.h:185
#define IEnumNetCfgBindingPath_QueryInterface(p, a, b)
Definition: netcfgx.h:183
#define E_NOINTERFACE
Definition: winerror.h:2364
#define E_POINTER
Definition: winerror.h:2365

Referenced by INetCfgComponentBindings_fnEnumBindingPaths().

◆ IEnumNetCfgBindingPath_fnAddRef()

ULONG WINAPI IEnumNetCfgBindingPath_fnAddRef ( IEnumNetCfgBindingPath *  iface)

Definition at line 208 of file netcfgbindingpath_iface.c.

210{
212 ULONG refCount = InterlockedIncrement(&This->ref);
213
214 return refCount;
215}
#define InterlockedIncrement
Definition: armddk.h:53
uint32_t ULONG
Definition: typedefs.h:59

◆ IEnumNetCfgBindingPath_fnClone()

HRESULT WINAPI IEnumNetCfgBindingPath_fnClone ( IEnumNetCfgBindingPath *  iface,
IEnumNetCfgBindingPath **  ppenum 
)

Definition at line 303 of file netcfgbindingpath_iface.c.

306{
307 return E_NOTIMPL;
308}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IEnumNetCfgBindingPath_fnNext()

HRESULT WINAPI IEnumNetCfgBindingPath_fnNext ( IEnumNetCfgBindingPath *  iface,
ULONG  celt,
INetCfgBindingPath **  rgelt,
ULONG pceltFetched 
)

Definition at line 230 of file netcfgbindingpath_iface.c.

235{
236#if 0
238 HRESULT hr;
239
240 if (!iface || !rgelt)
241 return E_POINTER;
242
243 if (celt != 1)
244 return E_INVALIDARG;
245
246 if (!This->pCurrent)
247 return S_FALSE;
248
250 if (SUCCEEDED(hr))
251 {
252 This->pCurrent = This->pCurrent->pNext;
253 if (pceltFetched)
254 *pceltFetched = 1;
255 }
256 return hr;
257#endif
258
259 return E_NOTIMPL;
260}
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
HRESULT WINAPI INetCfgBindingPath_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
EXTERN_C const IID IID_INetCfgComponent
Definition: netcfgx.h:77
HRESULT hr
Definition: shlfolder.c:183
#define S_FALSE
Definition: winerror.h:2357

◆ IEnumNetCfgBindingPath_fnQueryInterface()

HRESULT WINAPI IEnumNetCfgBindingPath_fnQueryInterface ( IEnumNetCfgBindingPath *  iface,
REFIID  iid,
LPVOID ppvObj 
)

Definition at line 187 of file netcfgbindingpath_iface.c.

191{
193 *ppvObj = NULL;
194
195 if (IsEqualIID (iid, &IID_IUnknown) ||
197 {
198 *ppvObj = This;
199 return S_OK;
200 }
201
202 return E_NOINTERFACE;
203}
const GUID IID_IUnknown
EXTERN_C const IID IID_IEnumNetCfgBindingPath
Definition: netcfgx.h:192
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

◆ IEnumNetCfgBindingPath_fnRelease()

ULONG WINAPI IEnumNetCfgBindingPath_fnRelease ( IEnumNetCfgBindingPath *  iface)

Definition at line 219 of file netcfgbindingpath_iface.c.

221{
223 ULONG refCount = InterlockedDecrement(&This->ref);
224
225 return refCount;
226}
#define InterlockedDecrement
Definition: armddk.h:52

◆ IEnumNetCfgBindingPath_fnReset()

HRESULT WINAPI IEnumNetCfgBindingPath_fnReset ( IEnumNetCfgBindingPath *  iface)

Definition at line 288 of file netcfgbindingpath_iface.c.

290{
291#if 0
293
294 This->pCurrent = This->pHead;
295 return S_OK;
296#endif
297
298 return E_NOTIMPL;
299}

◆ IEnumNetCfgBindingPath_fnSkip()

HRESULT WINAPI IEnumNetCfgBindingPath_fnSkip ( IEnumNetCfgBindingPath *  iface,
ULONG  celt 
)

Definition at line 264 of file netcfgbindingpath_iface.c.

267{
268#if 0
270
271 if (!This->pCurrent)
272 return S_FALSE;
273
274 while (celt-- > 0 && This->pCurrent)
275 This->pCurrent = This->pCurrent->pNext;
276
277 if (!celt)
278 return S_OK;
279 else
280 return S_FALSE;
281#endif
282
283 return E_NOTIMPL;
284}

◆ INetCfgBindingPath_Constructor()

HRESULT WINAPI INetCfgBindingPath_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 154 of file netcfgbindingpath_iface.c.

158{
160
161 if (!ppv)
162 return E_POINTER;
163
165 if (!This)
166 return E_OUTOFMEMORY;
167
168 This->ref = 1;
169 This->lpVtbl = (const INetCfgBindingPath*)&vt_NetCfgBindingPath;
170
171 if (!SUCCEEDED (INetCfgBindingPath_QueryInterface ((INetCfgBindingPath*)This, riid, ppv)))
172 {
173 return E_NOINTERFACE;
174 }
175
176 INetCfgBindingPath_Release((INetCfgBindingPath*)This);
177 return S_OK;
178}
static const INetCfgBindingPathVtbl vt_NetCfgBindingPath
#define INetCfgBindingPath_Release(p)
Definition: netcfgx.h:154
#define INetCfgBindingPath_QueryInterface(p, a, b)
Definition: netcfgx.h:152

Referenced by IEnumNetCfgBindingPath_fnNext().

◆ INetCfgBindingPath_fnAddRef()

ULONG WINAPI INetCfgBindingPath_fnAddRef ( INetCfgBindingPath *  iface)

Definition at line 42 of file netcfgbindingpath_iface.c.

44{
46 ULONG refCount = InterlockedIncrement(&This->ref);
47
48 return refCount;
49}

◆ INetCfgBindingPath_fnEnable()

HRESULT WINAPI INetCfgBindingPath_fnEnable ( INetCfgBindingPath *  iface,
BOOL  fEnable 
)

Definition at line 94 of file netcfgbindingpath_iface.c.

97{
98 return E_NOTIMPL;
99}

◆ INetCfgBindingPath_fnEnumBindingInterfaces()

HRESULT WINAPI INetCfgBindingPath_fnEnumBindingInterfaces ( INetCfgBindingPath *  iface,
IEnumNetCfgBindingInterface **  ppenumInterface 
)

Definition at line 130 of file netcfgbindingpath_iface.c.

133{
135}
HRESULT WINAPI IEnumNetCfgBindingInterface_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
EXTERN_C const IID IID_IEnumNetCfgBindingInterface
Definition: netcfgx.h:131

◆ INetCfgBindingPath_fnGetDepth()

HRESULT WINAPI INetCfgBindingPath_fnGetDepth ( INetCfgBindingPath *  iface,
ULONG pcInterfaces 
)

Definition at line 121 of file netcfgbindingpath_iface.c.

124{
125 return E_NOTIMPL;
126}

◆ INetCfgBindingPath_fnGetOwner()

HRESULT WINAPI INetCfgBindingPath_fnGetOwner ( INetCfgBindingPath *  iface,
INetCfgComponent **  ppComponent 
)

Definition at line 112 of file netcfgbindingpath_iface.c.

115{
116 return E_NOTIMPL;
117}

◆ INetCfgBindingPath_fnGetPathToken()

HRESULT WINAPI INetCfgBindingPath_fnGetPathToken ( INetCfgBindingPath *  iface,
LPWSTR ppszwPathToken 
)

Definition at line 103 of file netcfgbindingpath_iface.c.

106{
107 return E_NOTIMPL;
108}

◆ INetCfgBindingPath_fnIsEnabled()

HRESULT WINAPI INetCfgBindingPath_fnIsEnabled ( INetCfgBindingPath *  iface)

Definition at line 86 of file netcfgbindingpath_iface.c.

88{
89 return E_NOTIMPL;
90}

◆ INetCfgBindingPath_fnIsSamePathAs()

HRESULT WINAPI INetCfgBindingPath_fnIsSamePathAs ( INetCfgBindingPath *  iface,
INetCfgBindingPath *  pPath 
)

Definition at line 68 of file netcfgbindingpath_iface.c.

71{
72 return E_NOTIMPL;
73}

◆ INetCfgBindingPath_fnIsSubPathOf()

HRESULT WINAPI INetCfgBindingPath_fnIsSubPathOf ( INetCfgBindingPath *  iface,
INetCfgBindingPath *  pPath 
)

Definition at line 77 of file netcfgbindingpath_iface.c.

80{
81 return E_NOTIMPL;
82}

◆ INetCfgBindingPath_fnQueryInterface()

HRESULT WINAPI INetCfgBindingPath_fnQueryInterface ( INetCfgBindingPath *  iface,
REFIID  iid,
LPVOID ppvObj 
)

Definition at line 22 of file netcfgbindingpath_iface.c.

26{
28 *ppvObj = NULL;
29
30 if (IsEqualIID (iid, &IID_IUnknown) ||
32 {
33 *ppvObj = This;
34 return S_OK;
35 }
36
37 return E_NOINTERFACE;
38}
EXTERN_C const IID IID_INetCfgBindingPath
Definition: netcfgx.h:165

◆ INetCfgBindingPath_fnRelease()

ULONG WINAPI INetCfgBindingPath_fnRelease ( INetCfgBindingPath *  iface)

Definition at line 53 of file netcfgbindingpath_iface.c.

55{
57 ULONG refCount = InterlockedDecrement(&This->ref);
58
59 if (!refCount)
60 {
62 }
63 return refCount;
64}
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442

Variable Documentation

◆ vt_EnumNetCfgBindingPath

const IEnumNetCfgBindingPathVtbl vt_EnumNetCfgBindingPath
static
Initial value:
=
{
}
HRESULT WINAPI IEnumNetCfgBindingPath_fnNext(IEnumNetCfgBindingPath *iface, ULONG celt, INetCfgBindingPath **rgelt, ULONG *pceltFetched)
HRESULT WINAPI IEnumNetCfgBindingPath_fnClone(IEnumNetCfgBindingPath *iface, IEnumNetCfgBindingPath **ppenum)
HRESULT WINAPI IEnumNetCfgBindingPath_fnReset(IEnumNetCfgBindingPath *iface)
HRESULT WINAPI IEnumNetCfgBindingPath_fnQueryInterface(IEnumNetCfgBindingPath *iface, REFIID iid, LPVOID *ppvObj)
ULONG WINAPI IEnumNetCfgBindingPath_fnRelease(IEnumNetCfgBindingPath *iface)
ULONG WINAPI IEnumNetCfgBindingPath_fnAddRef(IEnumNetCfgBindingPath *iface)
HRESULT WINAPI IEnumNetCfgBindingPath_fnSkip(IEnumNetCfgBindingPath *iface, ULONG celt)

Definition at line 310 of file netcfgbindingpath_iface.c.

Referenced by IEnumNetCfgBindingPath_Constructor().

◆ vt_NetCfgBindingPath

const INetCfgBindingPathVtbl vt_NetCfgBindingPath
static
Initial value:
=
{
}
HRESULT WINAPI INetCfgBindingPath_fnGetOwner(INetCfgBindingPath *iface, INetCfgComponent **ppComponent)
HRESULT WINAPI INetCfgBindingPath_fnEnumBindingInterfaces(INetCfgBindingPath *iface, IEnumNetCfgBindingInterface **ppenumInterface)
HRESULT WINAPI INetCfgBindingPath_fnIsSubPathOf(INetCfgBindingPath *iface, INetCfgBindingPath *pPath)
HRESULT WINAPI INetCfgBindingPath_fnQueryInterface(INetCfgBindingPath *iface, REFIID iid, LPVOID *ppvObj)
ULONG WINAPI INetCfgBindingPath_fnRelease(INetCfgBindingPath *iface)
HRESULT WINAPI INetCfgBindingPath_fnGetPathToken(INetCfgBindingPath *iface, LPWSTR *ppszwPathToken)
HRESULT WINAPI INetCfgBindingPath_fnEnable(INetCfgBindingPath *iface, BOOL fEnable)
HRESULT WINAPI INetCfgBindingPath_fnIsSamePathAs(INetCfgBindingPath *iface, INetCfgBindingPath *pPath)
HRESULT WINAPI INetCfgBindingPath_fnGetDepth(INetCfgBindingPath *iface, ULONG *pcInterfaces)
ULONG WINAPI INetCfgBindingPath_fnAddRef(INetCfgBindingPath *iface)
HRESULT WINAPI INetCfgBindingPath_fnIsEnabled(INetCfgBindingPath *iface)

Definition at line 137 of file netcfgbindingpath_iface.c.

Referenced by INetCfgBindingPath_Constructor().