ReactOS 0.4.16-dev-2617-g01a0906
inetcfgcomp_iface.c File Reference
#include "precomp.h"
Include dependency graph for inetcfgcomp_iface.c:

Go to the source code of this file.

Classes

struct  INetCfgComponentImpl
 
struct  IEnumNetCfgComponentImpl
 

Functions

static __inline INetCfgComponentImplimpl_from_INetCfgComponentBindings (INetCfgComponentBindings *iface)
 
static __inline INetCfgComponentImplimpl_from_INetCfgComponentPrivate (INetCfgComponentPrivate *iface)
 
HRESULT WINAPI INetCfgComponentBindings_fnQueryInterface (INetCfgComponentBindings *iface, REFIID iid, LPVOID *ppvObj)
 
ULONG WINAPI INetCfgComponentBindings_fnAddRef (INetCfgComponentBindings *iface)
 
ULONG WINAPI INetCfgComponentBindings_fnRelease (INetCfgComponentBindings *iface)
 
HRESULT WINAPI INetCfgComponentBindings_fnBindTo (INetCfgComponentBindings *iface, INetCfgComponent *pnccItem)
 
HRESULT WINAPI INetCfgComponentBindings_fnUnbindFrom (INetCfgComponentBindings *iface, INetCfgComponent *pnccItem)
 
HRESULT WINAPI INetCfgComponentBindings_fnSupportsBindingInterface (INetCfgComponentBindings *iface, DWORD dwFlags, LPCWSTR pszwInterfaceName)
 
HRESULT WINAPI INetCfgComponentBindings_fnIsBoundTo (INetCfgComponentBindings *iface, INetCfgComponent *pnccItem)
 
HRESULT WINAPI INetCfgComponentBindings_fnIsBindableTo (INetCfgComponentBindings *iface, INetCfgComponent *pnccItem)
 
HRESULT WINAPI INetCfgComponentBindings_fnEnumBindingPaths (INetCfgComponentBindings *iface, DWORD dwFlags, IEnumNetCfgBindingPath **ppIEnum)
 
HRESULT WINAPI INetCfgComponentBindings_fnMoveBefore (INetCfgComponentBindings *iface, DWORD dwFlags, INetCfgBindingPath *pncbItemSrc, INetCfgBindingPath *pncbItemDest)
 
HRESULT WINAPI INetCfgComponentBindings_fnMoveAfter (INetCfgComponentBindings *iface, DWORD dwFlags, INetCfgBindingPath *pncbItemSrc, INetCfgBindingPath *pncbItemDest)
 
HRESULT WINAPI INetCfgComponentPrivate_fnQueryInterface (INetCfgComponentPrivate *iface, REFIID iid, LPVOID *ppvObj)
 
ULONG WINAPI INetCfgComponentPrivate_fnAddRef (INetCfgComponentPrivate *iface)
 
ULONG WINAPI INetCfgComponentPrivate_fnRelease (INetCfgComponentPrivate *iface)
 
HRESULT WINAPI INetCfgComponentPrivate_fnUnknown1 (INetCfgComponentPrivate *iface, DWORD dwParam1, DWORD dwParam2)
 
HRESULT WINAPI INetCfgComponent_fnQueryInterface (INetCfgComponent *iface, REFIID iid, LPVOID *ppvObj)
 
ULONG WINAPI INetCfgComponent_fnAddRef (INetCfgComponent *iface)
 
ULONG WINAPI INetCfgComponent_fnRelease (INetCfgComponent *iface)
 
HRESULT WINAPI INetCfgComponent_fnGetDisplayName (INetCfgComponent *iface, LPWSTR *ppszwDisplayName)
 
HRESULT WINAPI INetCfgComponent_fnSetDisplayName (INetCfgComponent *iface, LPCWSTR ppszwDisplayName)
 
HRESULT WINAPI INetCfgComponent_fnGetHelpText (INetCfgComponent *iface, LPWSTR *ppszwHelpText)
 
HRESULT WINAPI INetCfgComponent_fnGetId (INetCfgComponent *iface, LPWSTR *ppszwId)
 
HRESULT WINAPI INetCfgComponent_fnGetCharacteristics (INetCfgComponent *iface, DWORD *pdwCharacteristics)
 
HRESULT WINAPI INetCfgComponent_fnGetInstanceGuid (INetCfgComponent *iface, GUID *pGuid)
 
HRESULT WINAPI INetCfgComponent_fnGetPnpDevNodeId (INetCfgComponent *iface, LPWSTR *ppszwDevNodeId)
 
HRESULT WINAPI INetCfgComponent_fnGetClassGuid (INetCfgComponent *iface, GUID *pGuid)
 
HRESULT WINAPI INetCfgComponent_fnGetBindName (INetCfgComponent *iface, LPWSTR *ppszwBindName)
 
HRESULT WINAPI INetCfgComponent_fnGetDeviceStatus (INetCfgComponent *iface, ULONG *pStatus)
 
HRESULT WINAPI INetCfgComponent_fnOpenParamKey (INetCfgComponent *iface, HKEY *phkey)
 
HRESULT CreateNotificationObject (INetCfgComponentImpl *This, INetCfgComponent *iface, IUnknown *pUnk)
 
static int CALLBACK PropSheetProc (HWND hwndDlg, UINT uMsg, LPARAM lParam)
 
HRESULT WINAPI INetCfgComponent_fnRaisePropertyUi (INetCfgComponent *iface, IN HWND hwndParent, IN DWORD dwFlags, IN IUnknown *pUnk)
 
HRESULT WINAPI INetCfgComponent_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, NetCfgComponentItem *pItem, INetCfg *pNCfg)
 
HRESULT WINAPI IEnumNetCfgComponent_fnQueryInterface (IEnumNetCfgComponent *iface, REFIID iid, LPVOID *ppvObj)
 
ULONG WINAPI IEnumNetCfgComponent_fnAddRef (IEnumNetCfgComponent *iface)
 
ULONG WINAPI IEnumNetCfgComponent_fnRelease (IEnumNetCfgComponent *iface)
 
HRESULT WINAPI IEnumNetCfgComponent_fnNext (IEnumNetCfgComponent *iface, ULONG celt, INetCfgComponent **rgelt, ULONG *pceltFetched)
 
HRESULT WINAPI IEnumNetCfgComponent_fnSkip (IEnumNetCfgComponent *iface, ULONG celt)
 
HRESULT WINAPI IEnumNetCfgComponent_fnReset (IEnumNetCfgComponent *iface)
 
HRESULT WINAPI IEnumNetCfgComponent_fnClone (IEnumNetCfgComponent *iface, IEnumNetCfgComponent **ppenum)
 
HRESULT WINAPI IEnumNetCfgComponent_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, NetCfgComponentItem *pItem, INetCfg *pNCfg)
 

Variables

static const INetCfgComponentBindingsVtbl vt_NetCfgComponentBindings
 
static const INetCfgComponentPrivateVtbl vt_NetCfgComponentPrivate
 
static const INetCfgComponentVtbl vt_NetCfgComponent
 
static const IEnumNetCfgComponentVtbl vt_EnumNetCfgComponent
 

Function Documentation

◆ CreateNotificationObject()

HRESULT CreateNotificationObject ( INetCfgComponentImpl This,
INetCfgComponent *  iface,
IUnknown pUnk 
)

Definition at line 555 of file inetcfgcomp_iface.c.

559{
560 WCHAR szName[150];
561 HKEY hKey;
562 DWORD dwSize, dwType;
563 GUID CLSID_NotifyObject;
564 LPOLESTR pStr;
565 INetCfgComponentPropertyUi * pNCCPU;
566 INetCfgComponentControl * pNCCC;
567 HRESULT hr;
568 LONG lRet;
570 CLSID InstanceGUID;
571
572 wcscpy(szName,L"SYSTEM\\CurrentControlSet\\Control\\Network\\");
573
574 /* get the Class GUID */
576 if (FAILED(hr))
577 return hr;
578
579 hr = StringFromCLSID(&ClassGUID, &pStr);
580 if (FAILED(hr))
581 return hr;
582
583 wcscat(szName, pStr);
584 CoTaskMemFree(pStr);
585 wcscat(szName, L"\\");
586
587 /* get the Instance GUID */
588 hr = INetCfgComponent_GetInstanceGuid(iface, &InstanceGUID);
589 if (FAILED(hr))
590 return hr;
591
592 hr = StringFromCLSID(&InstanceGUID, &pStr);
593 if (FAILED(hr))
594 return hr;
595
596 wcscat(szName, pStr);
597 CoTaskMemFree(pStr);
598
599 wcscat(szName, L"\\NDI");
600
602 return E_FAIL;
603
604 dwSize = sizeof(szName);
605 lRet = RegQueryValueExW(hKey, L"ClsID", NULL, &dwType, (LPBYTE)szName, &dwSize);
607
608 if (lRet != ERROR_SUCCESS && dwType != REG_SZ)
609 return E_FAIL;
610
611 hr = CLSIDFromString(szName, &CLSID_NotifyObject);
612 if (FAILED(hr))
613 return E_FAIL;
614
615 hr = CoCreateInstance(&CLSID_NotifyObject, NULL, CLSCTX_INPROC_SERVER, &IID_INetCfgComponentPropertyUi, (LPVOID*)&pNCCPU);
616 if (FAILED(hr))
617 return E_FAIL;
618
620 if (FAILED(hr))
621 {
623 return hr;
624 }
625
627 if (FAILED(hr))
628 {
631 return hr;
632 }
633
634 hr = INetCfgComponentControl_Initialize(pNCCC, iface, This->pNCfg, FALSE);
635 if (FAILED(hr))
636 {
639 return hr;
640 }
641
643 if (FAILED(hr))
644 {
647 return hr;
648 }
649
650 This->pItem->pNCCC = pNCCC;
651 This->pItem->pProperty = pNCCPU;
652
653 return S_OK;
654}
#define RegCloseKey(hKey)
Definition: registry.h:49
#define E_FAIL
Definition: ddrawi.h:102
HRESULT hr
Definition: delayimp.cpp:573
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
Definition: reg.c:3333
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
Definition: reg.c:4103
HRESULT WINAPI StringFromCLSID(REFCLSID clsid, LPOLESTR *str)
Definition: combase.c:1515
HRESULT WINAPI CLSIDFromString(LPCOLESTR str, LPCLSID clsid)
Definition: combase.c:1470
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, IUnknown *outer, DWORD cls_context, REFIID riid, void **obj)
Definition: combase.c:1685
static const WCHAR ClassGUID[]
Definition: devclass.c:30
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
Definition: dplayx.c:30
#define L(x)
Definition: resources.c:13
unsigned long DWORD
Definition: ntddk_ex.h:95
FxAutoRegKey hKey
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
#define REG_SZ
Definition: layer.c:22
void WINAPI CoTaskMemFree(void *ptr)
Definition: malloc.c:389
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
static BSTR *static LPOLESTR
Definition: varformat.c:44
#define INetCfgComponentPropertyUi_SetContext(p, a)
Definition: netcfgn.h:81
#define INetCfgComponentPropertyUi_QueryInterface(p, a, b)
Definition: netcfgn.h:77
EXTERN_C const IID IID_INetCfgComponentPropertyUi
Definition: netcfgn.h:88
#define INetCfgComponentPropertyUi_Release(p)
Definition: netcfgn.h:79
EXTERN_C const IID IID_INetCfgComponentControl
Definition: netcfgn.h:57
#define INetCfgComponentControl_Initialize(p, a, b, c)
Definition: netcfgn.h:51
#define INetCfgComponentPropertyUi_QueryPropertyUi(p, a)
Definition: netcfgn.h:80
#define INetCfgComponentControl_Release(p)
Definition: netcfgn.h:50
#define INetCfgComponent_GetClassGuid(p, a)
Definition: netcfgx.h:70
#define INetCfgComponent_GetInstanceGuid(p, a)
Definition: netcfgx.h:68
#define KEY_READ
Definition: nt_native.h:1026
short WCHAR
Definition: pedump.c:58
long LONG
Definition: pedump.c:60
static const WCHAR szName[]
Definition: powrprof.c:45
wcscat
wcscpy
unsigned char * LPBYTE
Definition: typedefs.h:53
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12

Referenced by INetCfgComponent_fnRaisePropertyUi().

◆ IEnumNetCfgComponent_Constructor()

HRESULT WINAPI IEnumNetCfgComponent_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv,
NetCfgComponentItem pItem,
INetCfg *  pNCfg 
)

Definition at line 921 of file inetcfgcomp_iface.c.

922{
924
925 if (!ppv)
926 return E_POINTER;
927
929 if (!This)
930 return E_OUTOFMEMORY;
931
932 This->ref = 1;
933 This->lpVtbl = (const IEnumNetCfgComponent*)&vt_EnumNetCfgComponent;
934 This->pCurrent = pItem;
935 This->pHead = pItem;
936 This->pNCfg = pNCfg;
937
938 if (!SUCCEEDED (IEnumNetCfgComponent_QueryInterface ((INetCfgComponent*)This, riid, ppv)))
939 {
941 return E_NOINTERFACE;
942 }
943
944 IEnumNetCfgComponent_Release((IEnumNetCfgComponent*)This);
945 return S_OK;
946}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
static const IEnumNetCfgComponentVtbl vt_EnumNetCfgComponent
#define SUCCEEDED(hr)
Definition: intsafe.h:50
void *WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: malloc.c:381
#define IEnumNetCfgComponent_QueryInterface(p, a, b)
Definition: netcfgx.h:257
#define IEnumNetCfgComponent_Release(p)
Definition: netcfgx.h:259
#define E_NOINTERFACE
Definition: winerror.h:3479
#define E_POINTER
Definition: winerror.h:3480

Referenced by INetCfg_fnEnumComponents(), and INetCfgClass_fnEnumComponents().

◆ IEnumNetCfgComponent_fnAddRef()

ULONG WINAPI IEnumNetCfgComponent_fnAddRef ( IEnumNetCfgComponent *  iface)

Definition at line 818 of file inetcfgcomp_iface.c.

820{
822 ULONG refCount = InterlockedIncrement(&This->ref);
823
824 return refCount;
825}
#define InterlockedIncrement
Definition: armddk.h:53
uint32_t ULONG
Definition: typedefs.h:59

◆ IEnumNetCfgComponent_fnClone()

HRESULT WINAPI IEnumNetCfgComponent_fnClone ( IEnumNetCfgComponent *  iface,
IEnumNetCfgComponent **  ppenum 
)

Definition at line 901 of file inetcfgcomp_iface.c.

904{
905 return E_NOTIMPL;
906}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IEnumNetCfgComponent_fnNext()

HRESULT WINAPI IEnumNetCfgComponent_fnNext ( IEnumNetCfgComponent *  iface,
ULONG  celt,
INetCfgComponent **  rgelt,
ULONG pceltFetched 
)

Definition at line 840 of file inetcfgcomp_iface.c.

845{
846 HRESULT hr;
848
849 if (!iface || !rgelt)
850 return E_POINTER;
851
852 if (celt != 1)
853 return E_INVALIDARG;
854
855 if (!This->pCurrent)
856 return S_FALSE;
857
858 hr = INetCfgComponent_Constructor (NULL, &IID_INetCfgComponent, (LPVOID*)rgelt, This->pCurrent, This->pNCfg);
859 if (SUCCEEDED(hr))
860 {
861 This->pCurrent = This->pCurrent->pNext;
862 if (pceltFetched)
863 *pceltFetched = 1;
864 }
865 return hr;
866}
#define E_INVALIDARG
Definition: ddrawi.h:101
HRESULT WINAPI INetCfgComponent_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, NetCfgComponentItem *pItem, INetCfg *pNCfg)
EXTERN_C const IID IID_INetCfgComponent
Definition: netcfgx.h:77
#define S_FALSE
Definition: winerror.h:3451

◆ IEnumNetCfgComponent_fnQueryInterface()

HRESULT WINAPI IEnumNetCfgComponent_fnQueryInterface ( IEnumNetCfgComponent *  iface,
REFIID  iid,
LPVOID ppvObj 
)

Definition at line 796 of file inetcfgcomp_iface.c.

800{
802 *ppvObj = NULL;
803
804 if (IsEqualIID (iid, &IID_IUnknown) ||
806 {
807 *ppvObj = This;
808 INetCfg_AddRef(iface);
809 return S_OK;
810 }
811
812 return E_NOINTERFACE;
813}
const GUID IID_IUnknown
#define INetCfg_AddRef(p)
Definition: netcfgx.h:288
EXTERN_C const IID IID_IEnumNetCfgComponent
Definition: netcfgx.h:266
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

◆ IEnumNetCfgComponent_fnRelease()

ULONG WINAPI IEnumNetCfgComponent_fnRelease ( IEnumNetCfgComponent *  iface)

Definition at line 829 of file inetcfgcomp_iface.c.

831{
833 ULONG refCount = InterlockedDecrement(&This->ref);
834
835 return refCount;
836}
#define InterlockedDecrement
Definition: armddk.h:52

◆ IEnumNetCfgComponent_fnReset()

HRESULT WINAPI IEnumNetCfgComponent_fnReset ( IEnumNetCfgComponent *  iface)

Definition at line 890 of file inetcfgcomp_iface.c.

892{
894
895 This->pCurrent = This->pHead;
896 return S_OK;
897}

◆ IEnumNetCfgComponent_fnSkip()

HRESULT WINAPI IEnumNetCfgComponent_fnSkip ( IEnumNetCfgComponent *  iface,
ULONG  celt 
)

Definition at line 870 of file inetcfgcomp_iface.c.

873{
875
876 if (!This->pCurrent)
877 return S_FALSE;
878
879 while(celt-- > 0 && This->pCurrent)
880 This->pCurrent = This->pCurrent->pNext;
881
882 if (!celt)
883 return S_OK;
884 else
885 return S_FALSE;
886}

◆ impl_from_INetCfgComponentBindings()

static __inline INetCfgComponentImpl * impl_from_INetCfgComponentBindings ( INetCfgComponentBindings *  iface)
static

◆ impl_from_INetCfgComponentPrivate()

static __inline INetCfgComponentImpl * impl_from_INetCfgComponentPrivate ( INetCfgComponentPrivate *  iface)
static

◆ INetCfgComponent_Constructor()

HRESULT WINAPI INetCfgComponent_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv,
NetCfgComponentItem pItem,
INetCfg *  pNCfg 
)

Definition at line 761 of file inetcfgcomp_iface.c.

762{
764
765 if (!ppv)
766 return E_POINTER;
767
769 if (!This)
770 return E_OUTOFMEMORY;
771
772 This->ref = 1;
773 This->lpVtbl = (const INetCfgComponent*)&vt_NetCfgComponent;
774 This->lpVtblBindings = (const INetCfgComponentBindings*)&vt_NetCfgComponentBindings;
775 This->lpVtblPrivate = (const INetCfgComponentPrivate*)&vt_NetCfgComponentPrivate;
776 This->pItem = pItem;
777 This->pNCfg = pNCfg;
778
779 if (!SUCCEEDED (INetCfgComponent_QueryInterface ((INetCfgComponent*)This, riid, ppv)))
780 {
782 return E_NOINTERFACE;
783 }
784
785 INetCfgComponent_Release((INetCfgComponent*)This);
786 return S_OK;
787}
static const INetCfgComponentBindingsVtbl vt_NetCfgComponentBindings
static const INetCfgComponentVtbl vt_NetCfgComponent
static const INetCfgComponentPrivateVtbl vt_NetCfgComponentPrivate
#define INetCfgComponent_QueryInterface(p, a, b)
Definition: netcfgx.h:60
#define INetCfgComponent_Release(p)
Definition: netcfgx.h:62

Referenced by FindNetworkComponent(), IEnumNetCfgComponent_fnNext(), and INetCfgClass_fnFindComponent().

◆ INetCfgComponent_fnAddRef()

ULONG WINAPI INetCfgComponent_fnAddRef ( INetCfgComponent *  iface)

Definition at line 279 of file inetcfgcomp_iface.c.

281{
283 ULONG refCount = InterlockedIncrement(&This->ref);
284
285 return refCount;
286}

◆ INetCfgComponent_fnGetBindName()

HRESULT WINAPI INetCfgComponent_fnGetBindName ( INetCfgComponent *  iface,
LPWSTR ppszwBindName 
)

Definition at line 493 of file inetcfgcomp_iface.c.

496{
497 LPWSTR szBind;
499
500 if (This == NULL || ppszwBindName == NULL)
501 return E_POINTER;
502
503 szBind = CoTaskMemAlloc((wcslen(This->pItem->szBindName)+1) * sizeof(WCHAR));
504 if (!szBind)
505 return E_OUTOFMEMORY;
506
507 wcscpy(szBind, This->pItem->szBindName);
508 *ppszwBindName = szBind;
509
510 return S_OK;
511}
_ACRTIMP size_t __cdecl wcslen(const wchar_t *)
Definition: wcs.c:2983
uint16_t * LPWSTR
Definition: typedefs.h:56

◆ INetCfgComponent_fnGetCharacteristics()

HRESULT WINAPI INetCfgComponent_fnGetCharacteristics ( INetCfgComponent *  iface,
DWORD pdwCharacteristics 
)

Definition at line 423 of file inetcfgcomp_iface.c.

426{
428
429 if (This == NULL || pdwCharacteristics == NULL)
430 return E_POINTER;
431
432 *pdwCharacteristics = This->pItem->dwCharacteristics;
433
434 return S_OK;
435}

◆ INetCfgComponent_fnGetClassGuid()

HRESULT WINAPI INetCfgComponent_fnGetClassGuid ( INetCfgComponent *  iface,
GUID pGuid 
)

Definition at line 478 of file inetcfgcomp_iface.c.

481{
483
484 if (This == NULL || pGuid == NULL)
485 return E_POINTER;
486
487 CopyMemory(pGuid, &This->pItem->ClassGUID, sizeof(GUID));
488 return S_OK;
489}
#define CopyMemory
Definition: minwinbase.h:29

◆ INetCfgComponent_fnGetDeviceStatus()

HRESULT WINAPI INetCfgComponent_fnGetDeviceStatus ( INetCfgComponent *  iface,
ULONG pStatus 
)

Definition at line 515 of file inetcfgcomp_iface.c.

518{
520
521 if (This == NULL || pStatus == NULL)
522 return E_POINTER;
523
524 if (!IsEqualGUID(&GUID_DEVCLASS_NET, &This->pItem->ClassGUID))
525 return E_UNEXPECTED;
526
527 *pStatus = This->pItem->Status;
528
529 return S_OK;
530}
__in WDFDMATRANSACTION __out NTSTATUS * pStatus
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_UNEXPECTED
Definition: winerror.h:3528

◆ INetCfgComponent_fnGetDisplayName()

HRESULT WINAPI INetCfgComponent_fnGetDisplayName ( INetCfgComponent *  iface,
LPWSTR ppszwDisplayName 
)

Definition at line 305 of file inetcfgcomp_iface.c.

308{
310 UINT Length;
312
313 if (This == NULL || ppszwDisplayName == NULL)
314 return E_POINTER;
315
316 if (This->pItem->szDisplayName)
317 Length = wcslen(This->pItem->szDisplayName)+1;
318 else
319 Length = 1;
320
321 szName = CoTaskMemAlloc(Length * sizeof(WCHAR));
322 if (!szName)
323 return E_OUTOFMEMORY;
324
325 if (Length > 1)
326 wcscpy(szName, This->pItem->szDisplayName);
327 else
328 szName[0] = L'\0';
329
330 *ppszwDisplayName = szName;
331
332 return S_OK;
333}
unsigned int UINT
Definition: ndis.h:50
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102

◆ INetCfgComponent_fnGetHelpText()

HRESULT WINAPI INetCfgComponent_fnGetHelpText ( INetCfgComponent *  iface,
LPWSTR ppszwHelpText 
)

Definition at line 369 of file inetcfgcomp_iface.c.

372{
373 LPWSTR szHelp;
374 UINT Length;
376
377 if (This == NULL || ppszwHelpText == NULL)
378 return E_POINTER;
379
380 if (This->pItem->szHelpText)
381 Length = wcslen(This->pItem->szHelpText)+1;
382 else
383 Length = 1;
384
385 szHelp = CoTaskMemAlloc(Length * sizeof(WCHAR));
386 if (!szHelp)
387 return E_OUTOFMEMORY;
388
389 if (Length > 1)
390 wcscpy(szHelp, This->pItem->szHelpText);
391 else
392 szHelp[0] = L'\0';
393
394 *ppszwHelpText = szHelp;
395
396 return S_OK;
397}

◆ INetCfgComponent_fnGetId()

HRESULT WINAPI INetCfgComponent_fnGetId ( INetCfgComponent *  iface,
LPWSTR ppszwId 
)

Definition at line 401 of file inetcfgcomp_iface.c.

404{
405 LPWSTR szId;
407
408 if (This == NULL || ppszwId == NULL)
409 return E_POINTER;
410
411 szId = CoTaskMemAlloc((wcslen(This->pItem->szId)+1) * sizeof(WCHAR));
412 if (!szId)
413 return E_OUTOFMEMORY;
414
415 wcscpy(szId, This->pItem->szId);
416 *ppszwId = szId;
417
418 return S_OK;
419}

◆ INetCfgComponent_fnGetInstanceGuid()

HRESULT WINAPI INetCfgComponent_fnGetInstanceGuid ( INetCfgComponent *  iface,
GUID pGuid 
)

Definition at line 439 of file inetcfgcomp_iface.c.

442{
444
445 if (This == NULL || pGuid == NULL)
446 return E_POINTER;
447
448 CopyMemory(pGuid, &This->pItem->InstanceId, sizeof(GUID));
449 return S_OK;
450}

◆ INetCfgComponent_fnGetPnpDevNodeId()

HRESULT WINAPI INetCfgComponent_fnGetPnpDevNodeId ( INetCfgComponent *  iface,
LPWSTR ppszwDevNodeId 
)

Definition at line 454 of file inetcfgcomp_iface.c.

457{
458 LPWSTR szNode;
460
461 if (This == NULL || ppszwDevNodeId == NULL)
462 return E_POINTER;
463
464 if (!IsEqualGUID(&GUID_DEVCLASS_NET, &This->pItem->ClassGUID))
465 return E_NOTIMPL;
466
467 szNode = CoTaskMemAlloc((wcslen(This->pItem->szNodeId)+1) * sizeof(WCHAR));
468 if (!szNode)
469 return E_OUTOFMEMORY;
470
471 wcscpy(szNode, This->pItem->szNodeId);
472 *ppszwDevNodeId = szNode;
473 return S_OK;
474}

◆ INetCfgComponent_fnOpenParamKey()

HRESULT WINAPI INetCfgComponent_fnOpenParamKey ( INetCfgComponent *  iface,
HKEY phkey 
)

Definition at line 534 of file inetcfgcomp_iface.c.

537{
538 WCHAR szBuffer[200] = L"SYSTEM\\CurrentControlSet\\Services\\";
540
541 if (This == NULL || phkey == NULL)
542 return E_POINTER;
543
544 wcscat(szBuffer, This->pItem->szBindName);
545 wcscat(szBuffer, L"\\Parameters");
546
547 if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, szBuffer, 0, KEY_READ | KEY_WRITE, phkey) == ERROR_SUCCESS)
548 return S_OK;
549 else
550 return E_FAIL;
551}
#define KEY_WRITE
Definition: nt_native.h:1034

◆ INetCfgComponent_fnQueryInterface()

HRESULT WINAPI INetCfgComponent_fnQueryInterface ( INetCfgComponent *  iface,
REFIID  iid,
LPVOID ppvObj 
)

Definition at line 245 of file inetcfgcomp_iface.c.

249{
251 *ppvObj = NULL;
252
253 if (IsEqualIID (iid, &IID_IUnknown) ||
255 {
256 *ppvObj = This;
257 INetCfg_AddRef(iface);
258 return S_OK;
259 }
261 {
262 *ppvObj = (LPVOID)&This->lpVtblBindings;
264 return S_OK;
265 }
267 {
268 TRACE("IID_INetCfgComponentPrivate\n");
269 *ppvObj = (LPVOID)&This->lpVtblPrivate;
271 return S_OK;
272 }
273
274 return E_NOINTERFACE;
275}
EXTERN_C const IID IID_INetCfgComponentBindings
Definition: netcfgx.h:239
#define INetCfgComponentBindings_AddRef(p)
Definition: netcfgx.h:227
#define INetCfgComponentPrivate_AddRef(p)
Definition: netcfgx_undoc.h:21
EXTERN_C const IID IID_INetCfgComponentPrivate
Definition: netcfgx_undoc.h:16
#define LPVOID
Definition: nt_native.h:45
#define TRACE(s)
Definition: solgame.cpp:4

◆ INetCfgComponent_fnRaisePropertyUi()

HRESULT WINAPI INetCfgComponent_fnRaisePropertyUi ( INetCfgComponent *  iface,
IN HWND  hwndParent,
IN DWORD  dwFlags,
IN IUnknown pUnk 
)

Definition at line 675 of file inetcfgcomp_iface.c.

680{
681 HRESULT hr;
682 DWORD dwDefPages;
683 UINT Pages;
684 PROPSHEETHEADERW pinfo;
685 HPROPSHEETPAGE * hppages;
686 INT_PTR iResult;
688
689 if (!This->pItem->pProperty)
690 {
692 if (FAILED(hr))
693 return hr;
694 }
695
697 return S_OK;
698
699 dwDefPages = 0;
700 Pages = 0;
701
702 hr = INetCfgComponentPropertyUi_MergePropPages(This->pItem->pProperty, &dwDefPages, (BYTE**)&hppages, &Pages, hwndParent, NULL);
703 if (FAILED(hr) || !Pages)
704 {
705 return hr;
706 }
707 ZeroMemory(&pinfo, sizeof(PROPSHEETHEADERW));
708 pinfo.dwSize = sizeof(PROPSHEETHEADERW);
709 pinfo.dwFlags = PSH_NOCONTEXTHELP | PSH_PROPTITLE | PSH_NOAPPLYNOW |
711 pinfo.u3.phpage = hppages;
712 pinfo.hwndParent = hwndParent;
713 pinfo.nPages = Pages;
715 pinfo.pszCaption = This->pItem->szDisplayName;
718
719 iResult = PropertySheetW(&pinfo);
720 CoTaskMemFree(hppages);
721 if (iResult > 0)
722 {
724 /* indicate that settings should be stored */
725 if (hr == S_OK)
726 This->pItem->bChanged = TRUE;
727 }
728 else if (iResult == 0)
729 {
731 }
732 else
733 {
734 hr = S_FALSE;
735 }
736
737 return hr;
738}
#define IDI_INTERNET
Definition: resource.h:23
static HWND hwndParent
Definition: cryptui.c:300
#define TRUE
Definition: types.h:120
INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
Definition: propsheet.c:2916
HINSTANCE netcfgx_hInstance
Definition: netcfgx.c:15
HRESULT CreateNotificationObject(INetCfgComponentImpl *This, INetCfgComponent *iface, IUnknown *pUnk)
static int CALLBACK PropSheetProc(HWND hwndDlg, UINT uMsg, LPARAM lParam)
#define ZeroMemory
Definition: minwinbase.h:31
struct _PSP * HPROPSHEETPAGE
Definition: mstask.idl:90
#define INetCfgComponentPropertyUi_ApplyProperties(p)
Definition: netcfgn.h:84
#define INetCfgComponentPropertyUi_CancelProperties(p)
Definition: netcfgn.h:85
#define INetCfgComponentPropertyUi_MergePropPages(p, a, b, c, d, e)
Definition: netcfgn.h:82
@ NCRP_QUERY_PROPERTY_UI
Definition: netcfgx.h:31
_In_ LPWSTR _In_ DWORD _In_ DWORD _In_ DWORD dwFlags
Definition: netsh.h:141
#define PSH_PROPTITLE
Definition: prsht.h:40
#define PSH_USECALLBACK
Definition: prsht.h:48
#define PSH_USEICONID
Definition: prsht.h:42
struct _PROPSHEETHEADERW PROPSHEETHEADERW
#define PSH_NOAPPLYNOW
Definition: prsht.h:47
HINSTANCE hInstance
Definition: prsht.h:296
DWORD dwSize
Definition: prsht.h:293
DWORD dwFlags
Definition: prsht.h:294
LPCWSTR pszIcon
Definition: prsht.h:299
HWND hwndParent
Definition: prsht.h:295
PFNPROPSHEETCALLBACK pfnCallback
Definition: prsht.h:311
HPROPSHEETPAGE * phpage
Definition: prsht.h:309
LPCWSTR pszCaption
Definition: prsht.h:301
int32_t INT_PTR
Definition: typedefs.h:64
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
unsigned char BYTE
Definition: xxhash.c:193

◆ INetCfgComponent_fnRelease()

ULONG WINAPI INetCfgComponent_fnRelease ( INetCfgComponent *  iface)

Definition at line 290 of file inetcfgcomp_iface.c.

292{
294 ULONG refCount = InterlockedDecrement(&This->ref);
295
296 if (!refCount)
297 {
299 }
300 return refCount;
301}

◆ INetCfgComponent_fnSetDisplayName()

HRESULT WINAPI INetCfgComponent_fnSetDisplayName ( INetCfgComponent *  iface,
LPCWSTR  ppszwDisplayName 
)

FIXME check for invalid characters check for write lock

Definition at line 337 of file inetcfgcomp_iface.c.

340{
343
344 if (This == NULL || ppszwDisplayName == NULL)
345 return E_POINTER;
346
347 /* setting name is only supported for network cards */
348 if (!IsEqualGUID(&This->pItem->ClassGUID, &GUID_DEVCLASS_NET))
349 return E_NOTIMPL;
350
354
355 szName = CoTaskMemAlloc((wcslen(ppszwDisplayName)+1) * sizeof(WCHAR));
356 if (!szName)
357 return E_OUTOFMEMORY;
358
359 wcscpy(szName, ppszwDisplayName);
360 CoTaskMemFree(This->pItem->szDisplayName);
361 This->pItem->szDisplayName = szName;
362 This->pItem->bChanged = TRUE;
363
364 return S_OK;
365}

◆ INetCfgComponentBindings_fnAddRef()

ULONG WINAPI INetCfgComponentBindings_fnAddRef ( INetCfgComponentBindings *  iface)

Definition at line 49 of file inetcfgcomp_iface.c.

51{
53 return INetCfgComponent_AddRef((INetCfgComponent*)This);
54}
static __inline INetCfgComponentImpl * impl_from_INetCfgComponentBindings(INetCfgComponentBindings *iface)
#define INetCfgComponent_AddRef(p)
Definition: netcfgx.h:61

◆ INetCfgComponentBindings_fnBindTo()

HRESULT WINAPI INetCfgComponentBindings_fnBindTo ( INetCfgComponentBindings *  iface,
INetCfgComponent *  pnccItem 
)

Definition at line 67 of file inetcfgcomp_iface.c.

70{
71 return E_NOTIMPL;
72}

◆ INetCfgComponentBindings_fnEnumBindingPaths()

HRESULT WINAPI INetCfgComponentBindings_fnEnumBindingPaths ( INetCfgComponentBindings *  iface,
DWORD  dwFlags,
IEnumNetCfgBindingPath **  ppIEnum 
)

Definition at line 141 of file inetcfgcomp_iface.c.

145{
147}
HRESULT WINAPI IEnumNetCfgBindingPath_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, DWORD dwFlags)
EXTERN_C const IID IID_IEnumNetCfgBindingPath
Definition: netcfgx.h:192

◆ INetCfgComponentBindings_fnIsBindableTo()

HRESULT WINAPI INetCfgComponentBindings_fnIsBindableTo ( INetCfgComponentBindings *  iface,
INetCfgComponent *  pnccItem 
)

Definition at line 132 of file inetcfgcomp_iface.c.

135{
136 return E_NOTIMPL;
137}

◆ INetCfgComponentBindings_fnIsBoundTo()

HRESULT WINAPI INetCfgComponentBindings_fnIsBoundTo ( INetCfgComponentBindings *  iface,
INetCfgComponent *  pnccItem 
)

Definition at line 95 of file inetcfgcomp_iface.c.

98{
99 INetCfgComponentImpl *pComponent;
100 PWSTR pszBindName, ptr;
101 INT len;
102
103 pComponent = impl_from_INetCfgComponentBindings(iface);
104 if (pComponent == NULL ||
105 pComponent->pItem == NULL ||
106 pComponent->pItem->pszBinding == NULL)
107 return E_POINTER;
108
109 if (pnccItem == NULL ||
110 ((INetCfgComponentImpl*)pnccItem)->pItem == NULL ||
111 ((INetCfgComponentImpl*)pnccItem)->pItem->szBindName == NULL)
112 return E_POINTER;
113
114 pszBindName = ((INetCfgComponentImpl*)pnccItem)->pItem->szBindName;
115
116 ptr = pComponent->pItem->pszBinding;
117 while (*ptr != UNICODE_NULL)
118 {
119 len = wcslen(ptr);
120
121 if (len > 8 && _wcsicmp(&ptr[8], pszBindName) == 0)
122 return S_OK;
123
124 ptr = ptr + len + 1;
125 }
126
127 return S_FALSE;
128}
_ACRTIMP int __cdecl _wcsicmp(const wchar_t *, const wchar_t *)
Definition: wcs.c:159
GLenum GLsizei len
Definition: glext.h:6722
static PVOID ptr
Definition: dispmode.c:27
#define UNICODE_NULL
NetCfgComponentItem * pItem
uint16_t * PWSTR
Definition: typedefs.h:56
int32_t INT
Definition: typedefs.h:58

◆ INetCfgComponentBindings_fnMoveAfter()

HRESULT WINAPI INetCfgComponentBindings_fnMoveAfter ( INetCfgComponentBindings *  iface,
DWORD  dwFlags,
INetCfgBindingPath *  pncbItemSrc,
INetCfgBindingPath *  pncbItemDest 
)

Definition at line 162 of file inetcfgcomp_iface.c.

167{
168 return E_NOTIMPL;
169}

◆ INetCfgComponentBindings_fnMoveBefore()

HRESULT WINAPI INetCfgComponentBindings_fnMoveBefore ( INetCfgComponentBindings *  iface,
DWORD  dwFlags,
INetCfgBindingPath *  pncbItemSrc,
INetCfgBindingPath *  pncbItemDest 
)

Definition at line 151 of file inetcfgcomp_iface.c.

156{
157 return E_NOTIMPL;
158}

◆ INetCfgComponentBindings_fnQueryInterface()

HRESULT WINAPI INetCfgComponentBindings_fnQueryInterface ( INetCfgComponentBindings *  iface,
REFIID  iid,
LPVOID ppvObj 
)

Definition at line 38 of file inetcfgcomp_iface.c.

42{
44 return INetCfgComponent_QueryInterface((INetCfgComponent*)This, iid, ppvObj);
45}

◆ INetCfgComponentBindings_fnRelease()

ULONG WINAPI INetCfgComponentBindings_fnRelease ( INetCfgComponentBindings *  iface)

Definition at line 58 of file inetcfgcomp_iface.c.

60{
62 return INetCfgComponent_Release((INetCfgComponent*)This);
63}

◆ INetCfgComponentBindings_fnSupportsBindingInterface()

HRESULT WINAPI INetCfgComponentBindings_fnSupportsBindingInterface ( INetCfgComponentBindings *  iface,
DWORD  dwFlags,
LPCWSTR  pszwInterfaceName 
)

Definition at line 85 of file inetcfgcomp_iface.c.

89{
90 return E_NOTIMPL;
91}

◆ INetCfgComponentBindings_fnUnbindFrom()

HRESULT WINAPI INetCfgComponentBindings_fnUnbindFrom ( INetCfgComponentBindings *  iface,
INetCfgComponent *  pnccItem 
)

Definition at line 76 of file inetcfgcomp_iface.c.

79{
80 return E_NOTIMPL;
81}

◆ INetCfgComponentPrivate_fnAddRef()

ULONG WINAPI INetCfgComponentPrivate_fnAddRef ( INetCfgComponentPrivate *  iface)

Definition at line 203 of file inetcfgcomp_iface.c.

205{
207 return INetCfgComponent_AddRef((INetCfgComponent*)This);
208}
static __inline INetCfgComponentImpl * impl_from_INetCfgComponentPrivate(INetCfgComponentPrivate *iface)

◆ INetCfgComponentPrivate_fnQueryInterface()

HRESULT WINAPI INetCfgComponentPrivate_fnQueryInterface ( INetCfgComponentPrivate *  iface,
REFIID  iid,
LPVOID ppvObj 
)

Definition at line 192 of file inetcfgcomp_iface.c.

196{
198 return INetCfgComponent_QueryInterface((INetCfgComponent*)This, iid, ppvObj);
199}

◆ INetCfgComponentPrivate_fnRelease()

ULONG WINAPI INetCfgComponentPrivate_fnRelease ( INetCfgComponentPrivate *  iface)

Definition at line 212 of file inetcfgcomp_iface.c.

214{
216 return INetCfgComponent_Release((INetCfgComponent*)This);
217}

◆ INetCfgComponentPrivate_fnUnknown1()

HRESULT WINAPI INetCfgComponentPrivate_fnUnknown1 ( INetCfgComponentPrivate *  iface,
DWORD  dwParam1,
DWORD  dwParam2 
)

Definition at line 221 of file inetcfgcomp_iface.c.

225{
226// INetCfgComponentImpl *This = impl_from_INetCfgComponentPrivate(iface);
227 ERR("INetCfgComponentPrivate_fnUnknown1(%p %lx %lx)\n", iface, dwParam1, dwParam2);
228 return S_OK;
229}
#define ERR(fmt,...)
Definition: precomp.h:57

◆ PropSheetProc()

static int CALLBACK PropSheetProc ( HWND  hwndDlg,
UINT  uMsg,
LPARAM  lParam 
)
static

Definition at line 657 of file inetcfgcomp_iface.c.

658{
659 // NOTE: This callback is needed to set large icon correctly.
660 HICON hIcon;
661 switch (uMsg)
662 {
663 case PSCB_INITIALIZED:
664 {
666 SendMessageW(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
667 break;
668 }
669 }
670 return 0;
671}
LONG_PTR LPARAM
Definition: minwindef.h:175
static HICON
Definition: imagelist.c:80
HICON hIcon
Definition: msconfig.c:44
#define PSCB_INITIALIZED
Definition: prsht.h:75
#define ICON_BIG
Definition: tnclass.cpp:51
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
Definition: cursoricon.c:2444
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by INetCfgComponent_fnRaisePropertyUi().

Variable Documentation

◆ vt_EnumNetCfgComponent

const IEnumNetCfgComponentVtbl vt_EnumNetCfgComponent
static
Initial value:
=
{
}
HRESULT WINAPI IEnumNetCfgComponent_fnClone(IEnumNetCfgComponent *iface, IEnumNetCfgComponent **ppenum)
HRESULT WINAPI IEnumNetCfgComponent_fnQueryInterface(IEnumNetCfgComponent *iface, REFIID iid, LPVOID *ppvObj)
ULONG WINAPI IEnumNetCfgComponent_fnRelease(IEnumNetCfgComponent *iface)
HRESULT WINAPI IEnumNetCfgComponent_fnReset(IEnumNetCfgComponent *iface)
HRESULT WINAPI IEnumNetCfgComponent_fnNext(IEnumNetCfgComponent *iface, ULONG celt, INetCfgComponent **rgelt, ULONG *pceltFetched)
HRESULT WINAPI IEnumNetCfgComponent_fnSkip(IEnumNetCfgComponent *iface, ULONG celt)
ULONG WINAPI IEnumNetCfgComponent_fnAddRef(IEnumNetCfgComponent *iface)

Definition at line 908 of file inetcfgcomp_iface.c.

Referenced by IEnumNetCfgComponent_Constructor().

◆ vt_NetCfgComponent

const INetCfgComponentVtbl vt_NetCfgComponent
static
Initial value:
=
{
}
HRESULT WINAPI INetCfgComponent_fnGetDisplayName(INetCfgComponent *iface, LPWSTR *ppszwDisplayName)
HRESULT WINAPI INetCfgComponent_fnGetInstanceGuid(INetCfgComponent *iface, GUID *pGuid)
HRESULT WINAPI INetCfgComponent_fnGetDeviceStatus(INetCfgComponent *iface, ULONG *pStatus)
ULONG WINAPI INetCfgComponent_fnRelease(INetCfgComponent *iface)
HRESULT WINAPI INetCfgComponent_fnGetCharacteristics(INetCfgComponent *iface, DWORD *pdwCharacteristics)
HRESULT WINAPI INetCfgComponent_fnQueryInterface(INetCfgComponent *iface, REFIID iid, LPVOID *ppvObj)
HRESULT WINAPI INetCfgComponent_fnGetPnpDevNodeId(INetCfgComponent *iface, LPWSTR *ppszwDevNodeId)
HRESULT WINAPI INetCfgComponent_fnGetId(INetCfgComponent *iface, LPWSTR *ppszwId)
HRESULT WINAPI INetCfgComponent_fnGetBindName(INetCfgComponent *iface, LPWSTR *ppszwBindName)
ULONG WINAPI INetCfgComponent_fnAddRef(INetCfgComponent *iface)
HRESULT WINAPI INetCfgComponent_fnRaisePropertyUi(INetCfgComponent *iface, IN HWND hwndParent, IN DWORD dwFlags, IN IUnknown *pUnk)
HRESULT WINAPI INetCfgComponent_fnGetClassGuid(INetCfgComponent *iface, GUID *pGuid)
HRESULT WINAPI INetCfgComponent_fnSetDisplayName(INetCfgComponent *iface, LPCWSTR ppszwDisplayName)
HRESULT WINAPI INetCfgComponent_fnGetHelpText(INetCfgComponent *iface, LPWSTR *ppszwHelpText)
HRESULT WINAPI INetCfgComponent_fnOpenParamKey(INetCfgComponent *iface, HKEY *phkey)

Definition at line 740 of file inetcfgcomp_iface.c.

Referenced by INetCfgComponent_Constructor().

◆ vt_NetCfgComponentBindings

const INetCfgComponentBindingsVtbl vt_NetCfgComponentBindings
static
Initial value:
=
{
}
HRESULT WINAPI INetCfgComponentBindings_fnBindTo(INetCfgComponentBindings *iface, INetCfgComponent *pnccItem)
ULONG WINAPI INetCfgComponentBindings_fnRelease(INetCfgComponentBindings *iface)
HRESULT WINAPI INetCfgComponentBindings_fnIsBoundTo(INetCfgComponentBindings *iface, INetCfgComponent *pnccItem)
HRESULT WINAPI INetCfgComponentBindings_fnEnumBindingPaths(INetCfgComponentBindings *iface, DWORD dwFlags, IEnumNetCfgBindingPath **ppIEnum)
HRESULT WINAPI INetCfgComponentBindings_fnIsBindableTo(INetCfgComponentBindings *iface, INetCfgComponent *pnccItem)
HRESULT WINAPI INetCfgComponentBindings_fnQueryInterface(INetCfgComponentBindings *iface, REFIID iid, LPVOID *ppvObj)
HRESULT WINAPI INetCfgComponentBindings_fnMoveAfter(INetCfgComponentBindings *iface, DWORD dwFlags, INetCfgBindingPath *pncbItemSrc, INetCfgBindingPath *pncbItemDest)
HRESULT WINAPI INetCfgComponentBindings_fnSupportsBindingInterface(INetCfgComponentBindings *iface, DWORD dwFlags, LPCWSTR pszwInterfaceName)
ULONG WINAPI INetCfgComponentBindings_fnAddRef(INetCfgComponentBindings *iface)
HRESULT WINAPI INetCfgComponentBindings_fnMoveBefore(INetCfgComponentBindings *iface, DWORD dwFlags, INetCfgBindingPath *pncbItemSrc, INetCfgBindingPath *pncbItemDest)
HRESULT WINAPI INetCfgComponentBindings_fnUnbindFrom(INetCfgComponentBindings *iface, INetCfgComponent *pnccItem)

Definition at line 171 of file inetcfgcomp_iface.c.

Referenced by INetCfgComponent_Constructor().

◆ vt_NetCfgComponentPrivate

const INetCfgComponentPrivateVtbl vt_NetCfgComponentPrivate
static
Initial value:
=
{
}
HRESULT WINAPI INetCfgComponentPrivate_fnUnknown1(INetCfgComponentPrivate *iface, DWORD dwParam1, DWORD dwParam2)
HRESULT WINAPI INetCfgComponentPrivate_fnQueryInterface(INetCfgComponentPrivate *iface, REFIID iid, LPVOID *ppvObj)
ULONG WINAPI INetCfgComponentPrivate_fnRelease(INetCfgComponentPrivate *iface)
ULONG WINAPI INetCfgComponentPrivate_fnAddRef(INetCfgComponentPrivate *iface)

Definition at line 231 of file inetcfgcomp_iface.c.

Referenced by INetCfgComponent_Constructor().