hnetcfg: Add Dispatch support to interface INetFwOpenPorts.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d8d759af5b
commit
376fe634f5
|
@ -109,6 +109,7 @@ static REFIID tid_id[] =
|
|||
&IID_INetFwAuthorizedApplications,
|
||||
&IID_INetFwMgr,
|
||||
&IID_INetFwOpenPort,
|
||||
&IID_INetFwOpenPorts,
|
||||
&IID_INetFwPolicy,
|
||||
&IID_INetFwProfile
|
||||
};
|
||||
|
|
|
@ -22,6 +22,7 @@ enum type_id
|
|||
INetFwAuthorizedApplications_tid,
|
||||
INetFwMgr_tid,
|
||||
INetFwOpenPort_tid,
|
||||
INetFwOpenPorts_tid,
|
||||
INetFwPolicy_tid,
|
||||
INetFwProfile_tid,
|
||||
last_tid
|
||||
|
|
|
@ -439,8 +439,9 @@ static HRESULT WINAPI fw_ports_GetTypeInfoCount(
|
|||
{
|
||||
fw_ports *This = impl_from_INetFwOpenPorts( iface );
|
||||
|
||||
FIXME("%p %p\n", This, pctinfo);
|
||||
return E_NOTIMPL;
|
||||
TRACE("%p %p\n", This, pctinfo);
|
||||
*pctinfo = 1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI fw_ports_GetTypeInfo(
|
||||
|
@ -451,8 +452,8 @@ static HRESULT WINAPI fw_ports_GetTypeInfo(
|
|||
{
|
||||
fw_ports *This = impl_from_INetFwOpenPorts( iface );
|
||||
|
||||
FIXME("%p %u %u %p\n", This, iTInfo, lcid, ppTInfo);
|
||||
return E_NOTIMPL;
|
||||
TRACE("%p %u %u %p\n", This, iTInfo, lcid, ppTInfo);
|
||||
return get_typeinfo( INetFwOpenPorts_tid, ppTInfo );
|
||||
}
|
||||
|
||||
static HRESULT WINAPI fw_ports_GetIDsOfNames(
|
||||
|
@ -464,9 +465,18 @@ static HRESULT WINAPI fw_ports_GetIDsOfNames(
|
|||
DISPID *rgDispId )
|
||||
{
|
||||
fw_ports *This = impl_from_INetFwOpenPorts( iface );
|
||||
ITypeInfo *typeinfo;
|
||||
HRESULT hr;
|
||||
|
||||
FIXME("%p %s %p %u %u %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
|
||||
return E_NOTIMPL;
|
||||
TRACE("%p %s %p %u %u %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
|
||||
|
||||
hr = get_typeinfo( INetFwOpenPorts_tid, &typeinfo );
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
|
||||
ITypeInfo_Release( typeinfo );
|
||||
}
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI fw_ports_Invoke(
|
||||
|
@ -481,10 +491,20 @@ static HRESULT WINAPI fw_ports_Invoke(
|
|||
UINT *puArgErr )
|
||||
{
|
||||
fw_ports *This = impl_from_INetFwOpenPorts( iface );
|
||||
ITypeInfo *typeinfo;
|
||||
HRESULT hr;
|
||||
|
||||
FIXME("%p %d %s %d %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
|
||||
TRACE("%p %d %s %d %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
|
||||
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
||||
return E_NOTIMPL;
|
||||
|
||||
hr = get_typeinfo( INetFwOpenPorts_tid, &typeinfo );
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
hr = ITypeInfo_Invoke( typeinfo, &This->INetFwOpenPorts_iface, dispIdMember,
|
||||
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
|
||||
ITypeInfo_Release( typeinfo );
|
||||
}
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI fw_ports_get_Count(
|
||||
|
|
Loading…
Reference in New Issue