monitor-control-win

Crates.iomonitor-control-win
lib.rsmonitor-control-win
version0.1.1
sourcesrc
created_at2021-04-10 21:05:15.969475
updated_at2021-04-11 13:20:35.490923
descriptionControl monitors on Windows (WIP, currently read-only)
homepage
repositoryhttps://github.com/danielzfranklin/monitor-control-win
max_upload_size
id381793
size18,318
Daniel Franklin (danielzfranklin)

documentation

README

This library aims to handle getting information about and communicate with monitors on Windows. Currently only getting information is supported.

For the equivalent on Linux see xrandr-rs

Reliability

In short, this is an "It Works on my Machine" library. I've tested this library on one device, a Surface Book 2 running Windows 10.

Based on my dependencies' documentation, listing all monitors probably works at least as far back as Windows 8.1 and possibly as far back as Windows 7.

The approach used in this library for getting EDIDs is based off of old forum posts and StackOverflow answers and relies on undocumented registry keys. Some people on the internet report it works for many displays.

Getting monitors intersecting a window involves parsing an opaque ID with a Regex. I would be surprised if it works reliably.

Commit count: 14

cargo fmt