Skip to content

Commit 8dc9e50

Browse files
committed
[NETCFGX][REACTOS][UUID] Uncover one of many secrets of netcfgx.dll
The second parameter of the first function of the INetCfgComponentPrivate interface seems to be a REFIID. Netsh calls this function with an undocumented GUID called ITcpipProperties (see https://github.com/nihilus/GUID-Finder/blob/master/GUID-Finder/Interfaces.txt).
1 parent e2aa543 commit 8dc9e50

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

dll/win32/netcfgx/inetcfgcomp_iface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ HRESULT
220220
WINAPI
221221
INetCfgComponentPrivate_fnUnknown1(
222222
INetCfgComponentPrivate *iface,
223-
DWORD dwParam1,
223+
REFIID iid,
224224
DWORD dwParam2)
225225
{
226226
// INetCfgComponentImpl *This = impl_from_INetCfgComponentPrivate(iface);
227-
ERR("INetCfgComponentPrivate_fnUnknown1(%p %lx %lx)\n", iface, dwParam1, dwParam2);
227+
ERR("INetCfgComponentPrivate_fnUnknown1(%p %s %lx)\n", iface, wine_dbgstr_guid(iid), dwParam2);
228228
return S_OK;
229229
}
230230

sdk/include/reactos/netcfgx_undoc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DECLARE_INTERFACE_(INetCfgComponentPrivate, IUnknown)
88
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;
99
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1010
STDMETHOD_(ULONG,Release) (THIS) PURE;
11-
STDMETHOD_(HRESULT,Unknown1)(THIS_ DWORD dwParam1, DWORD dwParam2) PURE;
11+
STDMETHOD_(HRESULT,Unknown1)(THIS_ REFIID riid, DWORD dwParam2) PURE;
1212
/* ??? */
1313
};
1414
#undef INTERFACE

sdk/lib/uuid/otherguids.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ DEFINE_GUID(IID_INetCfgComponentNotifyBinding, 0x932238E1,0xBEA1,0x11D0,0x92,0x9
3434
DEFINE_GUID(IID_INetCfgComponentNotifyGlobal, 0x932238E2,0xBEA1,0x11D0,0x92,0x98,0x00,0xC0,0x4f,0xC9,0x9D,0xCF);
3535
DEFINE_GUID(IID_INetCfgComponentSetup, 0x932238E3,0xBEA1,0x11D0,0x92,0x98,0x00,0xC0,0x4f,0xC9,0x9D,0xCF);
3636
DEFINE_GUID(IID_INetCfgComponentUpperEdge, 0x932238E4,0xBEA1,0x11D0,0x92,0x98,0x00,0xC0,0x4F,0xC9,0x9D,0xCF);
37+
DEFINE_GUID(IID_ITcpipProperties, 0x98133271,0x4B20,0x11D1,0xAB,0x01,0x00,0x80,0x5F,0xC1,0x27,0x0E);
3738
DEFINE_GUID(FMTID_SummaryInformation,0xF29F85E0,0x4FF9,0x1068,0xAB,0x91,0x08,0x00,0x2B,0x27,0xB3,0xD9);
3839
DEFINE_GUID(FMTID_DocSummaryInformation,0xD5CDD502,0x2E9C,0x101B,0x93,0x97,0x08,0x00,0x2B,0x2C,0xF9,0xAE);
3940
DEFINE_GUID(FMTID_UserDefinedProperties,0xD5CDD505,0x2E9C,0x101B,0x93,0x97,0x08,0x00,0x2B,0x2C,0xF9,0xAE);

0 commit comments

Comments
 (0)