Stefan Kuhr
2010-03-14 18:20:11 UTC
Hello everyone,
I have an app bar as part of the product and I want to give
administrators a way to specify at installation time or via a group
policy on which display and which screen edge this app bar should be
visible after having been started, in case the computer has a
multimonitor setup. I only have a two-monitor setup and when enumerating
monitors on XP and Vista, I get the names \\.\DISPLAY1 and \\.\DISPLAY2.
Is this naming scheme \\.\DISPLAYx with x=[1...n] documented somewhere?
If this scheme is something I can rely upon, I would simply take a
number x that has been specified during setup or in the group policy,
construct the string \\.\DISPLAYx and display the appbar on that display.
Does anybody here have experience with these display names, are they
consistently of the form \\.\DISPLAYx? On all MS OS version that support
multiple monitors?
(Yes I know that display 2 could be on top of display 1 on one computer
and could be on the right of display 1 on the next computer. In my
scenario, I assume they have all been configured the same on all
computers of my customer).
I have an app bar as part of the product and I want to give
administrators a way to specify at installation time or via a group
policy on which display and which screen edge this app bar should be
visible after having been started, in case the computer has a
multimonitor setup. I only have a two-monitor setup and when enumerating
monitors on XP and Vista, I get the names \\.\DISPLAY1 and \\.\DISPLAY2.
Is this naming scheme \\.\DISPLAYx with x=[1...n] documented somewhere?
If this scheme is something I can rely upon, I would simply take a
number x that has been specified during setup or in the group policy,
construct the string \\.\DISPLAYx and display the appbar on that display.
Does anybody here have experience with these display names, are they
consistently of the form \\.\DISPLAYx? On all MS OS version that support
multiple monitors?
(Yes I know that display 2 could be on top of display 1 on one computer
and could be on the right of display 1 on the next computer. In my
scenario, I assume they have all been configured the same on all
computers of my customer).
--
S
S