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

Mohit Kumar 1 Reputation point

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

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

    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