How to get the Windows display identity number programmatically in c++?

Mohit Kumar 1 Reputation point
2021-03-18T12:24:12.563+00:00

I would like to get the "Monitor identity number" which is on "Windows Display setting -> Rearrange your displays" menu.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,625 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sheng Jiang 蒋晟 206 Reputation points
    2021-03-18T19:48:50.473+00:00

    There is nothing in MSDN Windows display APIs. It is not hard to write your own, though, if you know how to get a screen DC.

    0 comments No comments