Commit 99c5f7d7 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

hnetcfg: Add INetFwRule stub.

parent e7dada5f
......@@ -113,9 +113,9 @@ 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 };
static hnetcfg_cf fw_rule_cf = { { &hnetcfg_cf_vtbl }, NetFwRule_create };
static hnetcfg_cf upnpnat_cf = { { &hnetcfg_cf_vtbl }, IUPnPNAT_create };
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved)
{
TRACE("(0x%p, %ld, %p)\n", hInstDLL, fdwReason, reserved);
......@@ -154,6 +154,10 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
{
cf = &fw_policy2_cf.IClassFactory_iface;
}
else if (IsEqualGUID( rclsid, &CLSID_NetFwRule ))
{
cf = &fw_rule_cf.IClassFactory_iface;
}
else if (IsEqualGUID( rclsid, &CLSID_UPnPNAT ))
{
cf = &upnpnat_cf.IClassFactory_iface;
......
......@@ -26,6 +26,7 @@ enum type_id
INetFwPolicy_tid,
INetFwPolicy2_tid,
INetFwProfile_tid,
INetFwRule_tid,
INetFwRules_tid,
IUPnPNAT_tid,
IStaticPortMappingCollection_tid,
......@@ -45,4 +46,5 @@ HRESULT NetFwAuthorizedApplications_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN
HRESULT NetFwOpenPorts_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT NetFwOpenPort_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT NetFwServices_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT NetFwRule_create(IUnknown *, void **) DECLSPEC_HIDDEN;
HRESULT IUPnPNAT_create(IUnknown *, void **) 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