Function SCNetworkServiceSetEnabled

Source
pub unsafe extern "C-unwind" fn SCNetworkServiceSetEnabled(
    service: &SCNetworkService,
    enabled: bool,
) -> bool
Available on crate feature SCNetworkConfiguration only.
Expand description

Enables or disables the service.

Parameter service: The network service.

Parameter enabled: TRUE if the service should be enabled.

Returns: TRUE if the enabled status was saved; FALSE if an error was encountered.