Struct windows::Win32::NetworkManagement::WindowsFirewall::INetFwMgr
pub struct INetFwMgr(/* private fields */);
Implementations§
§impl INetFwMgr
impl INetFwMgr
pub unsafe fn LocalPolicy(&self) -> Result<INetFwPolicy>
pub unsafe fn CurrentProfileType(&self) -> Result<NET_FW_PROFILE_TYPE>
pub unsafe fn RestoreDefaults(&self) -> Result<()>
pub unsafe fn IsPortAllowed<P0, P1>( &self, imagefilename: P0, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: P1, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut VARIANT, restricted: *mut VARIANT ) -> Result<()>
pub unsafe fn IsIcmpTypeAllowed<P0>(
&self,
ipversion: NET_FW_IP_VERSION,
localaddress: P0,
type: u8,
allowed: *mut VARIANT,
restricted: *mut VARIANT
) -> Result<()>where
P0: IntoParam<BSTR>,
Trait Implementations§
§impl Interface for INetFwMgr
impl Interface for INetFwMgr
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreimpl Eq for INetFwMgr
impl StructuralPartialEq for INetFwMgr
Auto Trait Implementations§
impl RefUnwindSafe for INetFwMgr
impl !Send for INetFwMgr
impl !Sync for INetFwMgr
impl Unpin for INetFwMgr
impl UnwindSafe for INetFwMgr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more