pub trait INetFwPolicy2_Impl: Sized + IDispatch_Impl {
Show 22 methods // Required methods fn CurrentProfileTypes(&self) -> Result<i32>; fn get_FirewallEnabled( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT_BOOL>; fn put_FirewallEnabled( &self, profiletype: NET_FW_PROFILE_TYPE2, enabled: VARIANT_BOOL ) -> Result<()>; fn get_ExcludedInterfaces( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT>; fn put_ExcludedInterfaces( &self, profiletype: NET_FW_PROFILE_TYPE2, interfaces: &VARIANT ) -> Result<()>; fn get_BlockAllInboundTraffic( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT_BOOL>; fn put_BlockAllInboundTraffic( &self, profiletype: NET_FW_PROFILE_TYPE2, block: VARIANT_BOOL ) -> Result<()>; fn get_NotificationsDisabled( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT_BOOL>; fn put_NotificationsDisabled( &self, profiletype: NET_FW_PROFILE_TYPE2, disabled: VARIANT_BOOL ) -> Result<()>; fn get_UnicastResponsesToMulticastBroadcastDisabled( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT_BOOL>; fn put_UnicastResponsesToMulticastBroadcastDisabled( &self, profiletype: NET_FW_PROFILE_TYPE2, disabled: VARIANT_BOOL ) -> Result<()>; fn Rules(&self) -> Result<INetFwRules>; fn ServiceRestriction(&self) -> Result<INetFwServiceRestriction>; fn EnableRuleGroup( &self, profiletypesbitmask: i32, group: &BSTR, enable: VARIANT_BOOL ) -> Result<()>; fn IsRuleGroupEnabled( &self, profiletypesbitmask: i32, group: &BSTR ) -> Result<VARIANT_BOOL>; fn RestoreLocalFirewallDefaults(&self) -> Result<()>; fn get_DefaultInboundAction( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<NET_FW_ACTION>; fn put_DefaultInboundAction( &self, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION ) -> Result<()>; fn get_DefaultOutboundAction( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<NET_FW_ACTION>; fn put_DefaultOutboundAction( &self, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION ) -> Result<()>; fn get_IsRuleGroupCurrentlyEnabled( &self, group: &BSTR ) -> Result<VARIANT_BOOL>; fn LocalPolicyModifyState(&self) -> Result<NET_FW_MODIFY_STATE>;
}

Required Methods§

fn CurrentProfileTypes(&self) -> Result<i32>

fn get_FirewallEnabled( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT_BOOL>

fn put_FirewallEnabled( &self, profiletype: NET_FW_PROFILE_TYPE2, enabled: VARIANT_BOOL ) -> Result<()>

fn get_ExcludedInterfaces( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT>

fn put_ExcludedInterfaces( &self, profiletype: NET_FW_PROFILE_TYPE2, interfaces: &VARIANT ) -> Result<()>

fn get_BlockAllInboundTraffic( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT_BOOL>

fn put_BlockAllInboundTraffic( &self, profiletype: NET_FW_PROFILE_TYPE2, block: VARIANT_BOOL ) -> Result<()>

fn get_NotificationsDisabled( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT_BOOL>

fn put_NotificationsDisabled( &self, profiletype: NET_FW_PROFILE_TYPE2, disabled: VARIANT_BOOL ) -> Result<()>

fn get_UnicastResponsesToMulticastBroadcastDisabled( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<VARIANT_BOOL>

fn put_UnicastResponsesToMulticastBroadcastDisabled( &self, profiletype: NET_FW_PROFILE_TYPE2, disabled: VARIANT_BOOL ) -> Result<()>

fn Rules(&self) -> Result<INetFwRules>

fn ServiceRestriction(&self) -> Result<INetFwServiceRestriction>

fn EnableRuleGroup( &self, profiletypesbitmask: i32, group: &BSTR, enable: VARIANT_BOOL ) -> Result<()>

fn IsRuleGroupEnabled( &self, profiletypesbitmask: i32, group: &BSTR ) -> Result<VARIANT_BOOL>

fn RestoreLocalFirewallDefaults(&self) -> Result<()>

fn get_DefaultInboundAction( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<NET_FW_ACTION>

fn put_DefaultInboundAction( &self, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION ) -> Result<()>

fn get_DefaultOutboundAction( &self, profiletype: NET_FW_PROFILE_TYPE2 ) -> Result<NET_FW_ACTION>

fn put_DefaultOutboundAction( &self, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION ) -> Result<()>

fn get_IsRuleGroupCurrentlyEnabled(&self, group: &BSTR) -> Result<VARIANT_BOOL>

fn LocalPolicyModifyState(&self) -> Result<NET_FW_MODIFY_STATE>

Object Safety§

This trait is not object safe.

Implementors§