I want to build a tiny application in Windows Vista. It should tell me, whether it (the application window itself) is displayed on the screen of a laptop or on an external screen. I'd like to use C++ in VisualStudio 08.

I seriously don't have a clue about programming for Windows, don't even know which way to approach this problem or which libraries to use. I would totally appreciate if someone of you guys/girls could help me out with a quick hint.

Cheers, Seb