Skip to content

Implement getting network status from NLM service - #127

Merged
zleyyij merged 2 commits into
Spec-ify:mainfrom
Adam1213:nlm-status
Nov 8, 2026
Merged

zleyyij merged 2 commits into
Spec-ify:mainfrom
Adam1213:nlm-status

Conversation

@Adam1213

@Adam1213 Adam1213 commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

This PR adds network connectivity properties for network adapters presented by Network List Manager (NLM service) via COM interop. Only network adapters, which have network registered in NLM, will return properties (currently connected or previously connected adapters).

Object NetworkStatus is optionally added for network adapters with properites:

List of networks can be verified manually by running secpol.msc on Windows Pro and selecting Network List Manager policies.

COM interfaces were added in Windows Vista, so I dont expect any compatibility problems.

Closes #79

Comment on lines +460 to +464
catch (Exception e)
{
DebugLog.LogEvent($"Failed to read network status from NLM service.", DebugLog.Region.Networking, DebugLog.EventType.ERROR);
DebugLog.LogEvent($"{e}", DebugLog.Region.Networking, DebugLog.EventType.ERROR);
}

@zleyyij zleyyij left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@zleyyij
zleyyij merged commit 9e3f15f into Spec-ify:main Nov 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

if you go to settings->network and internet it'll show you "private network, public network, or domain network in the summary for the connected adapter

3 participants