[NETCFGX][REACTOS] Add a second unknown method to the ITcpipProperties interface

This method is called by the 'interface ip set address' command from WinXP ifmon.dll.
This commit is contained in:
Eric Kohl
2026-06-07 10:19:56 +02:00
parent c59ce34030
commit e2d6e875f9
2 changed files with 25 additions and 0 deletions
+23
View File
@@ -4635,12 +4635,35 @@ done:
return hr;
}
HRESULT
WINAPI
ITcpipProperties_fnUnknown2(
ITcpipProperties *iface,
GUID *pAdapterName,
PTCPIP_PROPERTIES pProperties)
{
HRESULT hr = S_OK;
ERR("ITcpipProperties_fnUnknown2(%s %p)\n", wine_dbgstr_guid(pAdapterName), pProperties);
if (pProperties)
{
ERR("pProperties->dwDhcp %lu\n", pProperties->dwDhcp);
ERR("pProperties->pszIpAddress %S\n", pProperties->pszIpAddress);
ERR("pProperties->pszSubnetMask %S\n", pProperties->pszSubnetMask);
ERR("pProperties->pszParameters %S\n", pProperties->pszParameters);
}
return hr;
}
static const ITcpipPropertiesVtbl vt_TcpipProperties =
{
ITcpipProperties_fnQueryInterface,
ITcpipProperties_fnAddRef,
ITcpipProperties_fnRelease,
ITcpipProperties_fnUnknown1,
ITcpipProperties_fnUnknown2,
};
HRESULT
+2
View File
@@ -17,6 +17,7 @@ DECLARE_INTERFACE_(ITcpipProperties, IUnknown)
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
STDMETHOD_(HRESULT,Unknown1)(THIS_ GUID *pAdapterName, PTCPIP_PROPERTIES *ppProperties) PURE;
STDMETHOD_(HRESULT,Unknown2)(THIS_ GUID *pAdapterName, PTCPIP_PROPERTIES pProperties) PURE;
/* ??? */
};
#undef INTERFACE
@@ -29,6 +30,7 @@ EXTERN_C const IID IID_ITcpipProperties;
#define ITcpipProperties_AddRef(p) (p)->lpVtbl->AddRef(p)
#define ITcpipProperties_Release(p) (p)->lpVtbl->Release(p)
#define ITcpipProperties_Unknown1(p,a,b) (p)->lpVtbl->Unknown1(p,a,b)
#define ITcpipProperties_Unknown2(p,a,b) (p)->lpVtbl->Unknown2(p,a,b)
/* ??? */
#endif