Feature: Add Display Detection & Audio Detection support for Windows platform && Refactor: move systems to use C++ wmi query function, much better performance#2
Merged
kernel-dev merged 26 commits intoMahasvan:mainfrom Jan 10, 2026
Conversation
…rectory; clean up `display.py`
…nterops/win/api/constants.py`
… coverage / security
Collaborator
Author
fix(Windows): refactor memory module's method name to be more accurate
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR implements display detection support for the Windows platform; more specifically:
GetGPUForDisplay(...),GetWmiInfo(...),GetNetworkHardwareInfo(...),GetAudioHardwareInfo(...)src/pysysinfo/interops/win/dllinterops/{platform}/dll/*.dllDisplay,DisplayModuleandResolutioninfo__init__.pynow loads bundled DLLs for Windows platform properly - example of loading currently included DLL module (this DLL path can be bundled, exact partitioning / structure TBD):display.pymay need some cleaning up, it's very messy at the moment, so that's why this PR is marked as draft for nowAlso will attempt to implement support for detecting size in inches, aspect ratio & mode (landscape/portrait)COMPLETEDPerformance
Tested the performance of
fetch_display_info(), on average it takes about ~11ms to fetch display data for 2 displays.The below logs are pre-network implementation and ACPI/PCI path fetching improvements.
Reference `main.py` timing code