ipconfig icon indicating copy to clipboard operation
ipconfig copied to clipboard

Feature Request: Connection Profile

Open laduke opened this issue 2 years ago • 2 comments

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

laduke avatar Feb 14 '23 23:02 laduke

Sure :)

liranringel avatar Feb 15 '23 03:02 liranringel

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.

laduke avatar Feb 15 '23 16:02 laduke