pub trait INetSharingConfiguration_Impl: Sized + IDispatch_Impl {
    // Required methods
    fn SharingEnabled(&self) -> Result<VARIANT_BOOL>;
    fn SharingConnectionType(&self) -> Result<SHARINGCONNECTIONTYPE>;
    fn DisableSharing(&self) -> Result<()>;
    fn EnableSharing(&self, type: SHARINGCONNECTIONTYPE) -> Result<()>;
    fn InternetFirewallEnabled(&self) -> Result<VARIANT_BOOL>;
    fn DisableInternetFirewall(&self) -> Result<()>;
    fn EnableInternetFirewall(&self) -> Result<()>;
    fn get_EnumPortMappings(
        &self,
        flags: SHARINGCONNECTION_ENUM_FLAGS,
    ) -> Result<INetSharingPortMappingCollection>;
    fn AddPortMapping(
        &self,
        bstrname: &BSTR,
        ucipprotocol: u8,
        usexternalport: u16,
        usinternalport: u16,
        dwoptions: u32,
        bstrtargetnameoripaddress: &BSTR,
        etargettype: ICS_TARGETTYPE,
    ) -> Result<INetSharingPortMapping>;
    fn RemovePortMapping(
        &self,
        pmapping: Option<&INetSharingPortMapping>,
    ) -> Result<()>;
}

Required Methods§

fn SharingEnabled(&self) -> Result<VARIANT_BOOL>

fn SharingConnectionType(&self) -> Result<SHARINGCONNECTIONTYPE>

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

fn EnableSharing(&self, type: SHARINGCONNECTIONTYPE) -> Result<()>

fn InternetFirewallEnabled(&self) -> Result<VARIANT_BOOL>

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

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

fn get_EnumPortMappings( &self, flags: SHARINGCONNECTION_ENUM_FLAGS, ) -> Result<INetSharingPortMappingCollection>

fn AddPortMapping( &self, bstrname: &BSTR, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: &BSTR, etargettype: ICS_TARGETTYPE, ) -> Result<INetSharingPortMapping>

fn RemovePortMapping( &self, pmapping: Option<&INetSharingPortMapping>, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§