Post

Replies

Boosts

Views

Activity

Reply to Disable peripherals on macOS programmatically
Hey, a bit late but I don't get the System Configuration API completely. How do I use that to disable e.g. "en0"? I got the Network Interface by using "SCNetworkInterfaceCopyAll()" and iterated over the interfaces. How do I check the current status (if it's enabled or disabled)? By using "SCNetworkInterfaceGetConfiguration()"? And do I set that by using "SCNetworkInterfaceSetConfiguration()"? The response for my NetworkInterfaces is always nil, when I try to get the Configuration by using "SCNetworkInterfaceGetConfiguration()".
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’23