c# - Is it possible to take over just one screen of multiple screens completely with .NET on Windows? -
with .net (any version) running on windows xp/vista/7/8 - possible reserve 1 screen full-screen application , display data/graphics/whatever on whilst keeping other screens available windows ui user interaction such desktop or other apps?
the usage scenario / rules here following:
the pc must able run programs as-is.
no interactivity required on .net contents (i.e. no keypresses, mouse clicks etc).
no other uis or dialogs other applications can penetrate 1 predefined screen reserved showing output .net executable.
the predefined screen .net contents must not have visible mouse cursor , other screens must have cursor boundaries if there no screen @ (i.e. cursor must stop @ edges of 1 or multiple desktops).
the content must visible if pc locked (i.e. user logged in workstation locked explorer).
i know accomplish external usb controller drives secondary monitor or other display device , manually build contents/graphics pushed interface i'm asking can normal wddm drivers w/ normal monitors?
edit: farther clarify - understand there multiple approaches accomplish similar result question here can 1 comply all of specifications/rules above.
it sounds me designing .net application used purely output (i.e display graph/chart, video etc). application must have dedicated monitor, , no other application (or cursor should able come in bounds of monitor).
my gut feeling whilst can forcefulness application particular monitor (xbmc has functionality), uncertainty can prevent of other applications entering monitor's display region.
when read question, in head clicked , thought "maybe want similar cpu affinity, can set in windows, , forcefulness application utilize particular cpu cores...maybe there similar monitors/display regions?"
sure enough, windows provides these functions:
http://msdn.microsoft.com/en-gb/library/windows/desktop/dd375340(v=vs.85).aspx
http://msdn.microsoft.com/en-gb/library/windows/desktop/dd375338(v=vs.85).aspx
you should able pinvoke these without much trouble. solve beingness able forcefulness application particular monitor. every other application in system, uncertainty able command display affinity easily.
at rough guess, need utilize win32 api phone call references window handles in system, , check display affinity, , if displaying in dedicated monitor, move them elsewhere.
this might help getting window handles:
how list or enumerate handles of unmanaged windows same class , name
http://msdn.microsoft.com/en-us/library/ms633497%28vs.85%29.aspx
just thought throw in there, may not helpful, should give more direction.
edit: found too...might of use
reserve screen area in windows 7
c# .net directx
useful information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b!..
ReplyDeletepython代写