Commit ab7a7071 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

hnetcfg: Add typeinfo support to INetFwOpenPort.

parent fe802040
...@@ -108,6 +108,7 @@ static REFIID tid_id[] = ...@@ -108,6 +108,7 @@ static REFIID tid_id[] =
&IID_INetFwAuthorizedApplication, &IID_INetFwAuthorizedApplication,
&IID_INetFwAuthorizedApplications, &IID_INetFwAuthorizedApplications,
&IID_INetFwMgr, &IID_INetFwMgr,
&IID_INetFwOpenPort,
&IID_INetFwPolicy, &IID_INetFwPolicy,
&IID_INetFwProfile &IID_INetFwProfile
}; };
......
...@@ -21,6 +21,7 @@ enum type_id ...@@ -21,6 +21,7 @@ enum type_id
INetFwAuthorizedApplication_tid, INetFwAuthorizedApplication_tid,
INetFwAuthorizedApplications_tid, INetFwAuthorizedApplications_tid,
INetFwMgr_tid, INetFwMgr_tid,
INetFwOpenPort_tid,
INetFwPolicy_tid, INetFwPolicy_tid,
INetFwProfile_tid, INetFwProfile_tid,
last_tid last_tid
......
...@@ -95,8 +95,9 @@ static HRESULT WINAPI fw_port_GetTypeInfoCount( ...@@ -95,8 +95,9 @@ static HRESULT WINAPI fw_port_GetTypeInfoCount(
{ {
fw_port *This = impl_from_INetFwOpenPort( iface ); fw_port *This = impl_from_INetFwOpenPort( iface );
FIXME("%p %p\n", This, pctinfo); TRACE("%p %p\n", This, pctinfo);
return E_NOTIMPL; *pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI fw_port_GetTypeInfo( static HRESULT WINAPI fw_port_GetTypeInfo(
...@@ -107,8 +108,8 @@ static HRESULT WINAPI fw_port_GetTypeInfo( ...@@ -107,8 +108,8 @@ static HRESULT WINAPI fw_port_GetTypeInfo(
{ {
fw_port *This = impl_from_INetFwOpenPort( iface ); fw_port *This = impl_from_INetFwOpenPort( iface );
FIXME("%p %u %u %p\n", This, iTInfo, lcid, ppTInfo); TRACE("%p %u %u %p\n", This, iTInfo, lcid, ppTInfo);
return E_NOTIMPL; return get_typeinfo( INetFwOpenPort_tid, ppTInfo );
} }
static HRESULT WINAPI fw_port_GetIDsOfNames( static HRESULT WINAPI fw_port_GetIDsOfNames(
...@@ -120,9 +121,18 @@ static HRESULT WINAPI fw_port_GetIDsOfNames( ...@@ -120,9 +121,18 @@ static HRESULT WINAPI fw_port_GetIDsOfNames(
DISPID *rgDispId ) DISPID *rgDispId )
{ {
fw_port *This = impl_from_INetFwOpenPort( iface ); fw_port *This = impl_from_INetFwOpenPort( iface );
ITypeInfo *typeinfo;
HRESULT hr;
FIXME("%p %s %p %u %u %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId); TRACE("%p %s %p %u %u %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
return E_NOTIMPL;
hr = get_typeinfo( INetFwOpenPort_tid, &typeinfo );
if (SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
ITypeInfo_Release( typeinfo );
}
return hr;
} }
static HRESULT WINAPI fw_port_Invoke( static HRESULT WINAPI fw_port_Invoke(
...@@ -137,10 +147,20 @@ static HRESULT WINAPI fw_port_Invoke( ...@@ -137,10 +147,20 @@ static HRESULT WINAPI fw_port_Invoke(
UINT *puArgErr ) UINT *puArgErr )
{ {
fw_port *This = impl_from_INetFwOpenPort( iface ); fw_port *This = impl_from_INetFwOpenPort( 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); lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
return E_NOTIMPL;
hr = get_typeinfo( INetFwOpenPort_tid, &typeinfo );
if (SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke( typeinfo, &This->INetFwOpenPort_iface, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
ITypeInfo_Release( typeinfo );
}
return hr;
} }
static HRESULT WINAPI fw_port_get_Name( static HRESULT WINAPI fw_port_get_Name(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment