ipconfig
ipconfig copied to clipboard
Feature Request: Connection Profile
Hey there, I'm interested in getting the Connection Profile of an Adapter. It's in a different section of the windows api sadly. It's the thing that says if a network is "private" or "public".
If I figure out how to do this FFI stuff, would you take a PR?
get-netconnectionprofile
Name : Network
InterfaceAlias : Ethernet
InterfaceIndex : 7
NetworkCategory : Private
DomainAuthenticationKind : None
IPv4Connectivity : Internet
IPv6Connectivity : Internet
https://learn.microsoft.com/en-us/windows/win32/api/netlistmgr/nf-netlistmgr-inetwork-getcategory
Sure :)
Alright. I think I run bindgen for with that function added to the whitelist. Then make a rust type for it and do similar to what's in Adapter.
I might not be able to work on this any time soon.