From: André Hentschel Subject: [1/2] netcfgx: Add stub for INetCfgComponent Message-Id: <53FE4200.7040502@dawncrow.de> Date: Wed, 27 Aug 2014 22:39:28 +0200 --- dlls/netcfgx/netcfg.c | 148 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) diff --git a/dlls/netcfgx/netcfg.c b/dlls/netcfgx/netcfg.c index 43db0ef..fa57131 100644 --- a/dlls/netcfgx/netcfg.c +++ b/dlls/netcfgx/netcfg.c @@ -30,6 +30,7 @@ WINE_DEFAULT_DEBUG_CHANNEL( netcfgx ); typedef struct NetConfiguration { INetCfg INetCfg_iface; + INetCfgComponent INetCfgComponent_iface; INetCfgLock INetCfgLock_iface; LONG ref; @@ -40,6 +41,11 @@ static inline NetConfiguration *impl_from_INetCfg(INetCfg *iface) return CONTAINING_RECORD(iface, NetConfiguration, INetCfg_iface); } +static inline NetConfiguration *impl_from_INetCfgComponent(INetCfgComponent *iface) +{ + return CONTAINING_RECORD(iface, NetConfiguration, INetCfgComponent_iface); +} + static inline NetConfiguration *impl_from_INetCfgLock(INetCfgLock *iface) { return CONTAINING_RECORD(iface, NetConfiguration, INetCfgLock_iface); @@ -55,6 +61,10 @@ static HRESULT WINAPI netcfg_QueryInterface(INetCfg *iface, REFIID riid, void ** { *ppvObject = &This->INetCfg_iface; } + else if(IsEqualGUID(riid, &IID_INetCfgComponent)) + { + *ppvObject = &This->INetCfgComponent_iface; + } else if(IsEqualGUID(riid, &IID_INetCfgLock)) { *ppvObject = &This->INetCfgLock_iface; @@ -166,6 +176,143 @@ static const struct INetCfgVtbl NetCfgVtbl = }; +static HRESULT WINAPI netcfgcomponent_QueryInterface(INetCfgComponent *iface, REFIID riid,void **ppvObject) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + + return netcfg_QueryInterface(&This->INetCfg_iface, riid, ppvObject); +} + +static ULONG WINAPI netcfgcomponent_AddRef(INetCfgComponent *iface) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + + return netcfg_AddRef(&This->INetCfg_iface); +} + +static ULONG WINAPI netcfgcomponent_Release(INetCfgComponent *iface) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + return netcfg_Release(&This->INetCfg_iface); +} + +static HRESULT WINAPI netcfgcomponent_GetDisplayName(INetCfgComponent *iface, WCHAR** name) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, name); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_SetDisplayName(INetCfgComponent *iface, const WCHAR* name) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, name); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_GetHelpText(INetCfgComponent *iface, WCHAR** text) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, text); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_GetId(INetCfgComponent *iface, WCHAR** id) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, id); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_GetCharacteristics(INetCfgComponent *iface, DWORD* c) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, c); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_GetInstanceGuid(INetCfgComponent *iface, GUID* guid) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, guid); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_GetPnpDevNodeId(INetCfgComponent *iface, WCHAR** id) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, id); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_GetClassGuid(INetCfgComponent *iface, GUID* guid) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, guid); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_GetBindName(INetCfgComponent *iface, WCHAR** name) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, name); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_GetDeviceStatus(INetCfgComponent *iface, ULONG* status) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, status); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_OpenParamKey(INetCfgComponent *iface, HKEY* key) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p\n", This, key); + + return E_NOTIMPL; +} + +static HRESULT WINAPI netcfgcomponent_RaisePropertyUi(INetCfgComponent *iface, HWND parent, + DWORD flags, IUnknown* ctx) +{ + NetConfiguration *This = impl_from_INetCfgComponent(iface); + FIXME("%p %p %u %p\n", This, parent, flags, ctx); + + return E_NOTIMPL; +} + +static const struct INetCfgComponentVtbl NetCfgComponentVtbl = +{ + netcfgcomponent_QueryInterface, + netcfgcomponent_AddRef, + netcfgcomponent_Release, + netcfgcomponent_GetDisplayName, + netcfgcomponent_SetDisplayName, + netcfgcomponent_GetHelpText, + netcfgcomponent_GetId, + netcfgcomponent_GetCharacteristics, + netcfgcomponent_GetInstanceGuid, + netcfgcomponent_GetPnpDevNodeId, + netcfgcomponent_GetClassGuid, + netcfgcomponent_GetBindName, + netcfgcomponent_GetDeviceStatus, + netcfgcomponent_OpenParamKey, + netcfgcomponent_RaisePropertyUi, +}; + + static HRESULT WINAPI netcfglock_QueryInterface(INetCfgLock *iface, REFIID riid,void **ppvObject) { NetConfiguration *This = impl_from_INetCfgLock(iface); @@ -230,6 +377,7 @@ HRESULT INetCfg_CreateInstance(IUnknown **ppUnk) return E_OUTOFMEMORY; This->INetCfg_iface.lpVtbl = &NetCfgVtbl; + This->INetCfgComponent_iface.lpVtbl = &NetCfgComponentVtbl; This->INetCfgLock_iface.lpVtbl = &NetCfgLockVtbl; This->ref = 1;