wshom.ocx: Implement WshNetwork2_GetIDsOfNames.

This commit is contained in:
Robert Wilhelm 2022-12-01 18:12:19 +01:00 committed by Alexandre Julliard
parent 04a84bc7e9
commit 5281889458
3 changed files with 16 additions and 3 deletions

View file

@ -74,8 +74,19 @@ static HRESULT WINAPI WshNetwork2_GetTypeInfo(IWshNetwork2 *iface, UINT iTInfo,
static HRESULT WINAPI WshNetwork2_GetIDsOfNames(IWshNetwork2 *iface, REFIID riid, LPOLESTR *rgszNames,
UINT cNames, LCID lcid, DISPID *rgDispId)
{
FIXME("%p, %s, %p, %u, %lx, %p.\n", iface, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
return E_NOTIMPL;
ITypeInfo *typeinfo;
HRESULT hr;
TRACE("%p, %s, %p, %u, %lx, %p.\n", iface, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
hr = get_typeinfo(IWshNetwork2_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
}
static HRESULT WINAPI WshNetwork2_Invoke(IWshNetwork2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid,

View file

@ -40,7 +40,8 @@ static REFIID tid_ids[] = {
&IID_IWshEnvironment,
&IID_IWshExec,
&IID_IWshShell3,
&IID_IWshShortcut
&IID_IWshShortcut,
&IID_IWshNetwork2
};
static HRESULT load_typelib(void)

View file

@ -33,6 +33,7 @@ typedef enum tid_t {
IWshExec_tid,
IWshShell3_tid,
IWshShortcut_tid,
IWshNetwork2_tid,
LAST_tid
} tid_t;