ReactOS 0.4.17-dev-470-gf9e3448
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  IEnumNetCfgComponentImpl
 

Functions

HRESULT CreateNotifyObject (INetCfgComponentImpl *This, INetCfgComponent *iface)
 
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, REFIID iid, LPVOID *ppvObj)
 
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)
 
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

◆ CreateNotifyObject()

HRESULT CreateNotifyObject ( INetCfgComponentImpl This,
INetCfgComponent *  iface 
)

Definition at line 599 of file inetcfgcomp_iface.c.

602{
603 WCHAR szName[150];
604 HKEY hKey;
605 DWORD dwSize, dwType;
606 GUID CLSID_NotifyObject;
607 LPOLESTR pStr;
608 INetCfgComponentControl *pControl;
609 INetCfgComponentPropertyUi *pPropertyUi;
610 INetCfgComponentSetup *pSetup;
611 INetCfgComponentNotifyBinding *pNotifyBinding;
612 INetCfgComponentNotifyGlobal *pNotifyGlobal;
613 INetCfgComponentUpperEdge *pUpperEdge;
614 HRESULT hr;
615 LONG lRet;
617 CLSID InstanceGUID;
618
619 if (This->pItem->pControl)
620 return S_OK;
621
622 wcscpy(szName,L"SYSTEM\\CurrentControlSet\\Control\\Network\\");
623
624 /* get the Class GUID */
626 if (FAILED(hr))
627 return hr;
628
629 hr = StringFromCLSID(&ClassGUID, &pStr);
630 if (FAILED(hr))
631 return hr;
632
633 wcscat(szName, pStr);
634 CoTaskMemFree(pStr);
635 wcscat(szName, L"\\");
636
637 /* get the Instance GUID */
638 hr = INetCfgComponent_GetInstanceGuid(iface, &InstanceGUID);
639 if (FAILED(hr))
640 return hr;
641
642 hr = StringFromCLSID(&InstanceGUID, &pStr);
643 if (FAILED(hr))
644 return hr;
645
646 wcscat(szName, pStr);
647 CoTaskMemFree(pStr);
648
649 wcscat(szName, L"\\NDI");
650
652 return E_FAIL;
653
654 dwSize = sizeof(szName);
655 lRet = RegQueryValueExW(hKey, L"ClsID", NULL, &dwType, (LPBYTE)szName, &dwSize);
657
658 if (lRet != ERROR_SUCCESS && dwType != REG_SZ)
659 return E_FAIL;
660
661 hr = CLSIDFromString(szName, &CLSID_NotifyObject);
662 if (FAILED(hr))
663 return E_FAIL;
664
665 hr = CoCreateInstance(&CLSID_NotifyObject, NULL, CLSCTX_INPROC_SERVER, &IID_INetCfgComponentControl, (LPVOID*)&pControl);
666 if (FAILED(hr))
667 return E_FAIL;
668
669 This->pItem->pControl = pControl;
670
672 if (SUCCEEDED(hr))
673 {
674 This->pItem->pPropertyUi = pPropertyUi;
675 }
676
678 if (SUCCEEDED(hr))
679 {
680 This->pItem->pSetup = pSetup;
681 }
682
684 if (SUCCEEDED(hr))
685 {
686 This->pItem->pNotifyBinding = pNotifyBinding;
687 }
688
690 if (SUCCEEDED(hr))
691 {
692 This->pItem->pNotifyGlobal = pNotifyGlobal;
693 }
694
696 if (SUCCEEDED(hr))
697 {
698 This->pItem->pUpperEdge = pUpperEdge;
699 }
700
701 INetCfgComponentControl_Initialize(pControl, iface, This->pNCfg, FALSE);
702
703 if (This->pItem->pNotifyGlobal)
704 {
706 &This->pItem->dwSupportedNotifications);
707 }
708
709 return S_OK;
710}
#define RegCloseKey(hKey)
Definition: registry.h:49
#define E_FAIL
Definition: ddrawi.h:102
HRESULT hr
Definition: delayimp.cpp:582
#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
void WINAPI CoTaskMemFree(void *ptr)
Definition: malloc.c:389
static const WCHAR ClassGUID[]
Definition: devclass.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 SUCCEEDED(hr)
Definition: intsafe.h:50
#define FAILED(hr)
Definition: intsafe.h:51
#define REG_SZ
Definition: layer.c:22
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
EXTERN_C const IID IID_INetCfgComponentPropertyUi
Definition: netcfgn.h:88
EXTERN_C const IID IID_INetCfgComponentNotifyBinding
Definition: netcfgn.h:111
EXTERN_C const IID IID_INetCfgComponentControl
Definition: netcfgn.h:57
EXTERN_C const IID IID_INetCfgComponentNotifyGlobal
Definition: netcfgn.h:138
#define INetCfgComponentControl_Initialize(p, a, b, c)
Definition: netcfgn.h:51
#define INetCfgComponentControl_QueryInterface(p, a, b)
Definition: netcfgn.h:48
EXTERN_C const IID IID_INetCfgComponentUpperEdge
Definition: netcfgn.h:213
EXTERN_C const IID IID_INetCfgComponentSetup
Definition: netcfgn.h:165
#define INetCfgComponentNotifyGlobal_GetSupportedNotifications(p, a)
Definition: netcfgn.h:132
#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(), and INetCfgComponentPrivate_fnUnknown1().

◆ IEnumNetCfgComponent_Constructor()

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

Definition at line 981 of file inetcfgcomp_iface.c.

982{
984
985 if (!ppv)
986 return E_POINTER;
987
989 if (!This)
990 return E_OUTOFMEMORY;
991
992 This->ref = 1;
993 This->lpVtbl = (const IEnumNetCfgComponent*)&vt_EnumNetCfgComponent;
994 This->pCurrent = pItem;
995 This->pHead = pItem;
996 This->pNCfg = pNCfg;
997
998 if (!SUCCEEDED (IEnumNetCfgComponent_QueryInterface ((INetCfgComponent*)This, riid, ppv)))
999 {
1001 return E_NOINTERFACE;
1002 }
1003
1004 IEnumNetCfgComponent_Release((IEnumNetCfgComponent*)This);
1005 return S_OK;
1006}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
void *WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: malloc.c:381
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
static const IEnumNetCfgComponentVtbl vt_EnumNetCfgComponent
#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 878 of file inetcfgcomp_iface.c.

880{
882 ULONG refCount = InterlockedIncrement(&This->ref);
883
884 return refCount;
885}
#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 961 of file inetcfgcomp_iface.c.

964{
965 return E_NOTIMPL;
966}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IEnumNetCfgComponent_fnNext()

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

Definition at line 900 of file inetcfgcomp_iface.c.

905{
906 HRESULT hr;
908
909 if (!iface || !rgelt)
910 return E_POINTER;
911
912 if (celt != 1)
913 return E_INVALIDARG;
914
915 if (!This->pCurrent)
916 return S_FALSE;
917
918 hr = INetCfgComponent_Constructor (NULL, &IID_INetCfgComponent, (LPVOID*)rgelt, This->pCurrent, This->pNCfg);
919 if (SUCCEEDED(hr))
920 {
921 This->pCurrent = This->pCurrent->pNext;
922 if (pceltFetched)
923 *pceltFetched = 1;
924 }
925 return hr;
926}
#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 856 of file inetcfgcomp_iface.c.

860{
862 *ppvObj = NULL;
863
864 if (IsEqualIID (iid, &IID_IUnknown) ||
866 {
867 *ppvObj = This;
868 INetCfg_AddRef(iface);
869 return S_OK;
870 }
871
872 return E_NOINTERFACE;
873}
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 889 of file inetcfgcomp_iface.c.

891{
893 ULONG refCount = InterlockedDecrement(&This->ref);
894
895 return refCount;
896}
#define InterlockedDecrement
Definition: armddk.h:52

◆ IEnumNetCfgComponent_fnReset()

HRESULT WINAPI IEnumNetCfgComponent_fnReset ( IEnumNetCfgComponent *  iface)

Definition at line 950 of file inetcfgcomp_iface.c.

952{
954
955 This->pCurrent = This->pHead;
956 return S_OK;
957}

◆ IEnumNetCfgComponent_fnSkip()

HRESULT WINAPI IEnumNetCfgComponent_fnSkip ( IEnumNetCfgComponent *  iface,
ULONG  celt 
)

Definition at line 930 of file inetcfgcomp_iface.c.

933{
935
936 if (!This->pCurrent)
937 return S_FALSE;
938
939 while(celt-- > 0 && This->pCurrent)
940 This->pCurrent = This->pCurrent->pNext;
941
942 if (!celt)
943 return S_OK;
944 else
945 return S_FALSE;
946}

◆ 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 821 of file inetcfgcomp_iface.c.

822{
824
825 if (!ppv)
826 return E_POINTER;
827
829 if (!This)
830 return E_OUTOFMEMORY;
831
832 This->ref = 1;
833 This->lpVtbl = (const INetCfgComponent*)&vt_NetCfgComponent;
834 This->lpVtblBindings = (const INetCfgComponentBindings*)&vt_NetCfgComponentBindings;
835 This->lpVtblPrivate = (const INetCfgComponentPrivate*)&vt_NetCfgComponentPrivate;
836 This->pItem = pItem;
837 This->pNCfg = pNCfg;
838
839 if (!SUCCEEDED (INetCfgComponent_QueryInterface ((INetCfgComponent*)This, riid, ppv)))
840 {
842 return E_NOINTERFACE;
843 }
844
845 INetCfgComponent_Release((INetCfgComponent*)This);
846 return S_OK;
847}
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 323 of file inetcfgcomp_iface.c.

325{
327 ULONG refCount = InterlockedIncrement(&This->ref);
328
329 return refCount;
330}

◆ INetCfgComponent_fnGetBindName()

HRESULT WINAPI INetCfgComponent_fnGetBindName ( INetCfgComponent *  iface,
LPWSTR ppszwBindName 
)

Definition at line 537 of file inetcfgcomp_iface.c.

540{
541 LPWSTR szBind;
543
544 if (This == NULL || ppszwBindName == NULL)
545 return E_POINTER;
546
547 szBind = CoTaskMemAlloc((wcslen(This->pItem->szBindName)+1) * sizeof(WCHAR));
548 if (!szBind)
549 return E_OUTOFMEMORY;
550
551 wcscpy(szBind, This->pItem->szBindName);
552 *ppszwBindName = szBind;
553
554 return S_OK;
555}
_ACRTIMP size_t __cdecl wcslen(const wchar_t *)
Definition: wcs.c:2988
uint16_t * LPWSTR
Definition: typedefs.h:56

◆ INetCfgComponent_fnGetCharacteristics()

HRESULT WINAPI INetCfgComponent_fnGetCharacteristics ( INetCfgComponent *  iface,
DWORD pdwCharacteristics 
)

Definition at line 467 of file inetcfgcomp_iface.c.

470{
472
473 if (This == NULL || pdwCharacteristics == NULL)
474 return E_POINTER;
475
476 *pdwCharacteristics = This->pItem->dwCharacteristics;
477
478 return S_OK;
479}

◆ INetCfgComponent_fnGetClassGuid()

HRESULT WINAPI INetCfgComponent_fnGetClassGuid ( INetCfgComponent *  iface,
GUID pGuid 
)

Definition at line 522 of file inetcfgcomp_iface.c.

525{
527
528 if (This == NULL || pGuid == NULL)
529 return E_POINTER;
530
531 CopyMemory(pGuid, &This->pItem->ClassGUID, sizeof(GUID));
532 return S_OK;
533}
#define CopyMemory
Definition: minwinbase.h:29

◆ INetCfgComponent_fnGetDeviceStatus()

HRESULT WINAPI INetCfgComponent_fnGetDeviceStatus ( INetCfgComponent *  iface,
ULONG pStatus 
)

Definition at line 559 of file inetcfgcomp_iface.c.

562{
564
565 if (This == NULL || pStatus == NULL)
566 return E_POINTER;
567
568 if (!IsEqualGUID(&GUID_DEVCLASS_NET, &This->pItem->ClassGUID))
569 return E_UNEXPECTED;
570
571 *pStatus = This->pItem->Status;
572
573 return S_OK;
574}
__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 349 of file inetcfgcomp_iface.c.

352{
354 UINT Length;
356
357 if (This == NULL || ppszwDisplayName == NULL)
358 return E_POINTER;
359
360 if (This->pItem->szDisplayName)
361 Length = wcslen(This->pItem->szDisplayName)+1;
362 else
363 Length = 1;
364
365 szName = CoTaskMemAlloc(Length * sizeof(WCHAR));
366 if (!szName)
367 return E_OUTOFMEMORY;
368
369 if (Length > 1)
370 wcscpy(szName, This->pItem->szDisplayName);
371 else
372 szName[0] = L'\0';
373
374 *ppszwDisplayName = szName;
375
376 return S_OK;
377}
unsigned int UINT
Definition: sysinfo.c:13
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102

◆ INetCfgComponent_fnGetHelpText()

HRESULT WINAPI INetCfgComponent_fnGetHelpText ( INetCfgComponent *  iface,
LPWSTR ppszwHelpText 
)

Definition at line 413 of file inetcfgcomp_iface.c.

416{
417 LPWSTR szHelp;
418 UINT Length;
420
421 if (This == NULL || ppszwHelpText == NULL)
422 return E_POINTER;
423
424 if (This->pItem->szHelpText)
425 Length = wcslen(This->pItem->szHelpText)+1;
426 else
427 Length = 1;
428
429 szHelp = CoTaskMemAlloc(Length * sizeof(WCHAR));
430 if (!szHelp)
431 return E_OUTOFMEMORY;
432
433 if (Length > 1)
434 wcscpy(szHelp, This->pItem->szHelpText);
435 else
436 szHelp[0] = L'\0';
437
438 *ppszwHelpText = szHelp;
439
440 return S_OK;
441}

◆ INetCfgComponent_fnGetId()

HRESULT WINAPI INetCfgComponent_fnGetId ( INetCfgComponent *  iface,
LPWSTR ppszwId 
)

Definition at line 445 of file inetcfgcomp_iface.c.

448{
449 LPWSTR szId;
451
452 if (This == NULL || ppszwId == NULL)
453 return E_POINTER;
454
455 szId = CoTaskMemAlloc((wcslen(This->pItem->szId)+1) * sizeof(WCHAR));
456 if (!szId)
457 return E_OUTOFMEMORY;
458
459 wcscpy(szId, This->pItem->szId);
460 *ppszwId = szId;
461
462 return S_OK;
463}

◆ INetCfgComponent_fnGetInstanceGuid()

HRESULT WINAPI INetCfgComponent_fnGetInstanceGuid ( INetCfgComponent *  iface,
GUID pGuid 
)

Definition at line 483 of file inetcfgcomp_iface.c.

486{
488
489 if (This == NULL || pGuid == NULL)
490 return E_POINTER;
491
492 CopyMemory(pGuid, &This->pItem->InstanceId, sizeof(GUID));
493 return S_OK;
494}

◆ INetCfgComponent_fnGetPnpDevNodeId()

HRESULT WINAPI INetCfgComponent_fnGetPnpDevNodeId ( INetCfgComponent *  iface,
LPWSTR ppszwDevNodeId 
)

Definition at line 498 of file inetcfgcomp_iface.c.

501{
502 LPWSTR szNode;
504
505 if (This == NULL || ppszwDevNodeId == NULL)
506 return E_POINTER;
507
508 if (!IsEqualGUID(&GUID_DEVCLASS_NET, &This->pItem->ClassGUID))
509 return E_NOTIMPL;
510
511 szNode = CoTaskMemAlloc((wcslen(This->pItem->szNodeId)+1) * sizeof(WCHAR));
512 if (!szNode)
513 return E_OUTOFMEMORY;
514
515 wcscpy(szNode, This->pItem->szNodeId);
516 *ppszwDevNodeId = szNode;
517 return S_OK;
518}

◆ INetCfgComponent_fnOpenParamKey()

HRESULT WINAPI INetCfgComponent_fnOpenParamKey ( INetCfgComponent *  iface,
HKEY phkey 
)

Definition at line 578 of file inetcfgcomp_iface.c.

581{
582 WCHAR szBuffer[200] = L"SYSTEM\\CurrentControlSet\\Services\\";
584
585 if (This == NULL || phkey == NULL)
586 return E_POINTER;
587
588 wcscat(szBuffer, This->pItem->szBindName);
589 wcscat(szBuffer, L"\\Parameters");
590
591 if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, szBuffer, 0, KEY_READ | KEY_WRITE, phkey) == ERROR_SUCCESS)
592 return S_OK;
593 else
594 return E_FAIL;
595}
#define KEY_WRITE
Definition: nt_native.h:1034

◆ INetCfgComponent_fnQueryInterface()

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

Definition at line 289 of file inetcfgcomp_iface.c.

293{
295 *ppvObj = NULL;
296
297 if (IsEqualIID (iid, &IID_IUnknown) ||
299 {
300 *ppvObj = This;
301 INetCfg_AddRef(iface);
302 return S_OK;
303 }
305 {
306 *ppvObj = (LPVOID)&This->lpVtblBindings;
308 return S_OK;
309 }
311 {
312 TRACE("IID_INetCfgComponentPrivate\n");
313 *ppvObj = (LPVOID)&This->lpVtblPrivate;
315 return S_OK;
316 }
317
318 return E_NOINTERFACE;
319}
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 731 of file inetcfgcomp_iface.c.

736{
737 HRESULT hr;
738 DWORD dwDefPages;
739 UINT Pages;
740 PROPSHEETHEADERW pinfo;
741 HPROPSHEETPAGE * hppages;
742 INT_PTR iResult;
744
745 hr = CreateNotifyObject(This, iface);
746 if (FAILED(hr))
747 return hr;
748
749 if (This->pItem->pPropertyUi == NULL)
750 return E_FAIL;
751
753 return INetCfgComponentPropertyUi_QueryPropertyUi(This->pItem->pPropertyUi, pUnk);
754
755 hr = INetCfgComponentPropertyUi_SetContext(This->pItem->pPropertyUi, pUnk);
756
757 dwDefPages = 0;
758 Pages = 0;
759
760 hr = INetCfgComponentPropertyUi_MergePropPages(This->pItem->pPropertyUi, &dwDefPages, (BYTE**)&hppages, &Pages, hwndParent, NULL);
761 if (FAILED(hr) || !Pages)
762 {
763 return hr;
764 }
765 ZeroMemory(&pinfo, sizeof(PROPSHEETHEADERW));
766 pinfo.dwSize = sizeof(PROPSHEETHEADERW);
767 pinfo.dwFlags = PSH_NOCONTEXTHELP | PSH_PROPTITLE | PSH_NOAPPLYNOW |
769 pinfo.u3.phpage = hppages;
770 pinfo.hwndParent = hwndParent;
771 pinfo.nPages = Pages;
773 pinfo.pszCaption = This->pItem->szDisplayName;
776
777 iResult = PropertySheetW(&pinfo);
778 CoTaskMemFree(hppages);
779 if (iResult > 0)
780 {
782 /* indicate that settings should be stored */
783 if (hr == S_OK)
784 This->pItem->bChanged = TRUE;
785 }
786 else if (iResult == 0)
787 {
789 }
790 else
791 {
792 hr = S_FALSE;
793 }
794
795 INetCfgComponentPropertyUi_SetContext(This->pItem->pPropertyUi, NULL);
796
797 return hr;
798}
#define IDI_INTERNET
Definition: resource.h:23
static HWND hwndParent
Definition: cryptui.c:299
#define TRUE
Definition: types.h:120
INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
Definition: propsheet.c:2916
HINSTANCE netcfgx_hInstance
Definition: netcfgx.c:15
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
Definition: dplayx.c:30
static int CALLBACK PropSheetProc(HWND hwndDlg, UINT uMsg, LPARAM lParam)
HRESULT CreateNotifyObject(INetCfgComponentImpl *This, INetCfgComponent *iface)
#define ZeroMemory
Definition: minwinbase.h:31
struct _PSP * HPROPSHEETPAGE
Definition: mstask.idl:90
#define INetCfgComponentPropertyUi_SetContext(p, a)
Definition: netcfgn.h:81
#define INetCfgComponentPropertyUi_QueryPropertyUi(p, a)
Definition: netcfgn.h:80
#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 334 of file inetcfgcomp_iface.c.

336{
338 ULONG refCount = InterlockedDecrement(&This->ref);
339
340 if (!refCount)
341 {
343 }
344 return refCount;
345}

◆ INetCfgComponent_fnSetDisplayName()

HRESULT WINAPI INetCfgComponent_fnSetDisplayName ( INetCfgComponent *  iface,
LPCWSTR  ppszwDisplayName 
)

FIXME check for invalid characters check for write lock

Definition at line 381 of file inetcfgcomp_iface.c.

384{
387
388 if (This == NULL || ppszwDisplayName == NULL)
389 return E_POINTER;
390
391 /* setting name is only supported for network cards */
392 if (!IsEqualGUID(&This->pItem->ClassGUID, &GUID_DEVCLASS_NET))
393 return E_NOTIMPL;
394
398
399 szName = CoTaskMemAlloc((wcslen(ppszwDisplayName)+1) * sizeof(WCHAR));
400 if (!szName)
401 return E_OUTOFMEMORY;
402
403 wcscpy(szName, ppszwDisplayName);
404 CoTaskMemFree(This->pItem->szDisplayName);
405 This->pItem->szDisplayName = szName;
406 This->pItem->bChanged = TRUE;
407
408 return S_OK;
409}

◆ INetCfgComponentBindings_fnAddRef()

ULONG WINAPI INetCfgComponentBindings_fnAddRef ( INetCfgComponentBindings *  iface)

Definition at line 41 of file inetcfgcomp_iface.c.

43{
45 return INetCfgComponent_AddRef((INetCfgComponent*)This);
46}
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 59 of file inetcfgcomp_iface.c.

62{
63 return E_NOTIMPL;
64}

◆ INetCfgComponentBindings_fnEnumBindingPaths()

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

Definition at line 168 of file inetcfgcomp_iface.c.

172{
174}
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 159 of file inetcfgcomp_iface.c.

162{
163 return E_NOTIMPL;
164}

◆ INetCfgComponentBindings_fnIsBoundTo()

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

Definition at line 122 of file inetcfgcomp_iface.c.

125{
126 INetCfgComponentImpl *pComponent;
127 PWSTR pszBindName, ptr;
128 INT len;
129
130 pComponent = impl_from_INetCfgComponentBindings(iface);
131 if (pComponent == NULL ||
132 pComponent->pItem == NULL ||
133 pComponent->pItem->pszBinding == NULL)
134 return E_POINTER;
135
136 if (pnccItem == NULL ||
137 ((INetCfgComponentImpl*)pnccItem)->pItem == NULL ||
138 ((INetCfgComponentImpl*)pnccItem)->pItem->szBindName == NULL)
139 return E_POINTER;
140
141 pszBindName = ((INetCfgComponentImpl*)pnccItem)->pItem->szBindName;
142
143 ptr = pComponent->pItem->pszBinding;
144 while (*ptr != UNICODE_NULL)
145 {
146 len = wcslen(ptr);
147
148 if (len > 8 && _wcsicmp(&ptr[8], pszBindName) == 0)
149 return S_OK;
150
151 ptr = ptr + len + 1;
152 }
153
154 return S_FALSE;
155}
_ACRTIMP int __cdecl _wcsicmp(const wchar_t *, const wchar_t *)
Definition: wcs.c:164
GLenum GLsizei len
Definition: glext.h:6722
static PVOID ptr
Definition: dispmode.c:27
#define UNICODE_NULL
NetCfgComponentItem * pItem
Definition: precomp.h:87
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 189 of file inetcfgcomp_iface.c.

194{
195 return E_NOTIMPL;
196}

◆ INetCfgComponentBindings_fnMoveBefore()

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

Definition at line 178 of file inetcfgcomp_iface.c.

183{
184 return E_NOTIMPL;
185}

◆ INetCfgComponentBindings_fnQueryInterface()

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

Definition at line 30 of file inetcfgcomp_iface.c.

34{
36 return INetCfgComponent_QueryInterface((INetCfgComponent*)This, iid, ppvObj);
37}

◆ INetCfgComponentBindings_fnRelease()

ULONG WINAPI INetCfgComponentBindings_fnRelease ( INetCfgComponentBindings *  iface)

Definition at line 50 of file inetcfgcomp_iface.c.

52{
54 return INetCfgComponent_Release((INetCfgComponent*)This);
55}

◆ INetCfgComponentBindings_fnSupportsBindingInterface()

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

Definition at line 77 of file inetcfgcomp_iface.c.

81{
82 INetCfgComponentImpl *pComponent;
83 PWSTR pszRange, pszStart, pszEnd;
84
85 pComponent = impl_from_INetCfgComponentBindings(iface);
86
87 if (!((dwFlags & NCF_UPPER) || (dwFlags & NCF_LOWER)))
88 return E_INVALIDARG;
89
90 if (!pszwInterfaceName)
91 return E_POINTER;
92
93 pszRange = (dwFlags & NCF_UPPER) ? pComponent->pItem->pszUpperRange : pComponent->pItem->pszLowerRange;
94 TRACE("Range: %S\n", pszRange);
95
96 pszStart = pszRange;
97 for (;;)
98 {
99 pszEnd = wcschr(pszStart, L',');
100 if (pszEnd == NULL)
101 {
102 TRACE("%S -- %S\n", pszStart, pszwInterfaceName);
103 return (_wcsicmp(pszStart, pszwInterfaceName)) ? S_FALSE : S_OK;
104 }
105 else
106 {
107 *pszEnd = UNICODE_NULL;
108 TRACE("%S -- %S\n", pszStart, pszwInterfaceName);
109 if (_wcsicmp(pszStart, pszwInterfaceName) == 0)
110 return S_OK;
111
112 *pszEnd = L',';
113 pszStart = pszEnd + 1;
114 }
115 }
116
117 return S_FALSE;
118}
#define wcschr
Definition: compat.h:17
@ NCF_UPPER
Definition: netcfgx.h:197
@ NCF_LOWER
Definition: netcfgx.h:196

◆ INetCfgComponentBindings_fnUnbindFrom()

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

Definition at line 68 of file inetcfgcomp_iface.c.

71{
72 return E_NOTIMPL;
73}

◆ INetCfgComponentPrivate_fnAddRef()

ULONG WINAPI INetCfgComponentPrivate_fnAddRef ( INetCfgComponentPrivate *  iface)

Definition at line 230 of file inetcfgcomp_iface.c.

232{
234 return INetCfgComponent_AddRef((INetCfgComponent*)This);
235}
static __inline INetCfgComponentImpl * impl_from_INetCfgComponentPrivate(INetCfgComponentPrivate *iface)

◆ INetCfgComponentPrivate_fnQueryInterface()

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

Definition at line 219 of file inetcfgcomp_iface.c.

223{
225 return INetCfgComponent_QueryInterface((INetCfgComponent*)This, iid, ppvObj);
226}

◆ INetCfgComponentPrivate_fnRelease()

ULONG WINAPI INetCfgComponentPrivate_fnRelease ( INetCfgComponentPrivate *  iface)

Definition at line 239 of file inetcfgcomp_iface.c.

241{
243 return INetCfgComponent_Release((INetCfgComponent*)This);
244}

◆ INetCfgComponentPrivate_fnUnknown1()

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

Definition at line 248 of file inetcfgcomp_iface.c.

252{
253 HRESULT hr;
254
255 TRACE("INetCfgComponentPrivate_fnUnknown1(%p %s %p)\n", iface, wine_dbgstr_guid(iid), ppvObj);
256
258 hr = CreateNotifyObject(This, (INetCfgComponent*)This);
259 if (FAILED(hr))
260 return hr;
261
262 TRACE("This->pItem %p\n", This->pItem);
263 if (This->pItem)
264 {
265 TRACE("This->pItem->pControl %p\n", This->pItem->pControl);
266 if (This->pItem->pControl)
267 {
268 return INetCfgComponentControl_QueryInterface(This->pItem->pControl, iid, ppvObj);
269 }
270 }
271
272 return S_OK;
273}
static __inline const char * wine_dbgstr_guid(const GUID *id)
Definition: debug.h:171

◆ PropSheetProc()

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

Definition at line 713 of file inetcfgcomp_iface.c.

714{
715 // NOTE: This callback is needed to set large icon correctly.
716 HICON hIcon;
717 switch (uMsg)
718 {
719 case PSCB_INITIALIZED:
720 {
722 SendMessageW(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
723 break;
724 }
725 }
726 return 0;
727}
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 968 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 800 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 198 of file inetcfgcomp_iface.c.

Referenced by INetCfgComponent_Constructor().

◆ vt_NetCfgComponentPrivate

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

Definition at line 275 of file inetcfgcomp_iface.c.

Referenced by INetCfgComponent_Constructor().