How to uniquely identify a monitor?

Posted by Jerry Dodge on Stack Overflow See other posts from Stack Overflow or by Jerry Dodge
Published on 2012-06-17T21:14:31Z Indexed on 2012/06/17 21:16 UTC
Read the original article Hit count: 193

Filed under:
|
|

I'm working on a project where I take screenshots of individual monitors (TMonitor) and stream their images through network (remote desktop viewing). Suppose a monitor is added/removed (which I can recognize this already), I need to synchronize which monitor this happened to. Because, suppose there's 3 monitors, indexes 0, 1, 2. Monitor 1 is removed. I don't want to automatically change index 2 to 1, I want it to maintain an ID at all times. Is there any property I can recognize in the TMonitor class (Screen.Monitors[i]) to uniquely identify it?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about screen