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

hnetcfg: Add stubbed INetFwPolicy2 interface.

parent 45c2911a
......@@ -111,6 +111,7 @@ static REFIID tid_id[] =
&IID_INetFwOpenPort,
&IID_INetFwOpenPorts,
&IID_INetFwPolicy,
&IID_INetFwPolicy2,
&IID_INetFwProfile
};
......
......@@ -113,6 +113,7 @@ static const struct IClassFactoryVtbl hnetcfg_cf_vtbl =
static hnetcfg_cf fw_manager_cf = { { &hnetcfg_cf_vtbl }, NetFwMgr_create };
static hnetcfg_cf fw_app_cf = { { &hnetcfg_cf_vtbl }, NetFwAuthorizedApplication_create };
static hnetcfg_cf fw_openport_cf = { { &hnetcfg_cf_vtbl }, NetFwOpenPort_create };
static hnetcfg_cf fw_policy2_cf = { { &hnetcfg_cf_vtbl }, NetFwPolicy2_create };
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved)
{
......@@ -151,6 +152,10 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
{
cf = &fw_openport_cf.IClassFactory_iface;
}
else if (IsEqualGUID( rclsid, &CLSID_NetFwPolicy2 ))
{
cf = &fw_policy2_cf.IClassFactory_iface;
}
if (!cf) return CLASS_E_CLASSNOTAVAILABLE;
return IClassFactory_QueryInterface( cf, iid, ppv );
......
......@@ -43,3 +43,11 @@ coclass NetFwAuthorizedApplication { interface INetFwAuthorizedApplications; }
uuid(0ca545c6-37ad-4a6c-bf92-9f7610067ef5)
]
coclass NetFwOpenPort { interface INetFwOpenPort; }
[
helpstring("HNetCfg.FwPolicy2"),
progid("HNetCfg.FwPolicy2"),
threading(both),
uuid(e2b3c97f-6ae1-41ac-817a-f6f92166d7dd)
]
coclass NetFwPolicy2 { interface INetFwPolicy2; }
......@@ -24,6 +24,7 @@ enum type_id
INetFwOpenPort_tid,
INetFwOpenPorts_tid,
INetFwPolicy_tid,
INetFwPolicy2_tid,
INetFwProfile_tid,
last_tid
};
......@@ -33,6 +34,7 @@ void release_typelib(void) DECLSPEC_HIDDEN;
HRESULT NetFwMgr_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT NetFwPolicy_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT NetFwPolicy2_create(IUnknown *, void **) DECLSPEC_HIDDEN;
HRESULT NetFwProfile_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT NetFwAuthorizedApplication_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT NetFwAuthorizedApplications_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
......
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