hnetcfg: Allow NetFwOpenPort to be created.
This commit is contained in:
parent
613d1715a4
commit
fe802040f6
|
@ -112,6 +112,7 @@ static const struct IClassFactoryVtbl hnetcfg_cf_vtbl =
|
||||||
|
|
||||||
static hnetcfg_cf fw_manager_cf = { { &hnetcfg_cf_vtbl }, NetFwMgr_create };
|
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_app_cf = { { &hnetcfg_cf_vtbl }, NetFwAuthorizedApplication_create };
|
||||||
|
static hnetcfg_cf fw_openport_cf = { { &hnetcfg_cf_vtbl }, NetFwOpenPort_create };
|
||||||
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
{
|
{
|
||||||
|
@ -142,6 +143,10 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
|
||||||
{
|
{
|
||||||
cf = &fw_app_cf.IClassFactory_iface;
|
cf = &fw_app_cf.IClassFactory_iface;
|
||||||
}
|
}
|
||||||
|
else if (IsEqualGUID( rclsid, &CLSID_NetFwOpenPort ))
|
||||||
|
{
|
||||||
|
cf = &fw_openport_cf.IClassFactory_iface;
|
||||||
|
}
|
||||||
|
|
||||||
if (!cf) return CLASS_E_CLASSNOTAVAILABLE;
|
if (!cf) return CLASS_E_CLASSNOTAVAILABLE;
|
||||||
return IClassFactory_QueryInterface( cf, iid, ppv );
|
return IClassFactory_QueryInterface( cf, iid, ppv );
|
||||||
|
|
|
@ -34,4 +34,5 @@ HRESULT NetFwProfile_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
|
||||||
HRESULT NetFwAuthorizedApplication_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
|
HRESULT NetFwAuthorizedApplication_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
|
||||||
HRESULT NetFwAuthorizedApplications_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
|
HRESULT NetFwAuthorizedApplications_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
|
||||||
HRESULT NetFwOpenPorts_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 NetFwServices_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
|
||||||
|
|
|
@ -321,7 +321,7 @@ static const struct INetFwOpenPortVtbl fw_port_vtbl =
|
||||||
fw_port_get_BuiltIn
|
fw_port_get_BuiltIn
|
||||||
};
|
};
|
||||||
|
|
||||||
static HRESULT NetFwOpenPort_create( IUnknown *pUnkOuter, LPVOID *ppObj )
|
HRESULT NetFwOpenPort_create( IUnknown *pUnkOuter, LPVOID *ppObj )
|
||||||
{
|
{
|
||||||
fw_port *fp;
|
fw_port *fp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue