Go Back   DriverHeaven > Forums > Graphics Cards > Other Video Cards
Register Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old Jan 31, 2004, 06:02 AM   #1 (permalink)
Denville
DriverHeaven Newbie
 
Join Date: Jan 2004
Location: Leeds, England
Posts: 6
Denville is on a distinguished road

Multiple detatched displays

Hello

My application uses several extra displays which are detatched from the desktop. All is well until I re-boot the system when XP insists on making these extra displays part of the desktop, thus stopping my application from working; I have to re-set the properties on each re-boot. That is the problem; here are some more details and subtlties:

The problem is evident in all combinations of cards I have tested and in two very different PC's. (I have tries nVidia, ATI and Colourgraphic single- and multi-channel display cards and in AGP/PCI and PCI/PCI combinations) so I think it is an OS issue and not specific to any particular manufacturer.

If I do not run my app, there is no problem (XP doesn't reset the desktop). Only after I have run my app does the problem occur. I have writen the smallest possible test app which simply enumerates the displays, gets a DC for each unattached display, then releases the DC and quits the app.

The desktop re-set actually takes place on log-on, not on re-boot. I get to the log-on screen ok, then when I log on (to any user), the secondary displays fire up and the desktop gets dispersed.

I have tried a couple of manufacturers' utilities which should force the required setup on start-up, and they probably do; but I guess this occurs before log-on.

A would be grateful for any suggestions, either to correct this behaviour, or to modify my app with an API call (I've not found one) that can detatch the secondary displays from the desktop as if I had changed the configuration manually in Display Settings (so there must be one!).

Many thanks for any help,
Denville.
Denville is offline   Reply With Quote
Old Feb 1, 2004, 08:43 AM   #2 (permalink)
Denville
DriverHeaven Newbie
 
Join Date: Jan 2004
Location: Leeds, England
Posts: 6
Denville is on a distinguished road

Multiple detached displays

Not to worry, I've fixed it. Thanks to anyone who was thinking about it for me.
Denville is offline   Reply With Quote
Old Feb 1, 2004, 11:29 AM   #3 (permalink)
Judas
DH's Dormant Dragon
 
Judas's Avatar
 
Join Date: May 2002
Location: IN Rem-Dormancy
Posts: 22,722
Judas will become famous soon enoughJudas will become famous soon enough
System Specs

...i would have totally jump on it if i had any clue of what the problem might have been.... but i have Zero experience with this... was hopeing someone knew....... How did you fix it?
__________________
Quote:
On the matter of communism, and it's front organizations should not obscure the issues. ~Adolf Hitler
Our enemy is a radical network of terrorist, and every government that supports them. ~George W. Bush
An evil excists that threatens every man, woman, and child, of this great nation. We must take steps to ensure our domestic security and protect our homeland. ~George W. Bush & Adolf Hitler
Look in the mirror occasionally, unless you reflect on what has occured in the past, scale those historical moments and forgotten moments to todays current situations, you are bound, in every inconceiveable and unwanted way, to repeat that which you may have swore to never do, and never support. We must awaken, and we must do so now and in mass. ~*pm me for whom*
Judas is offline   Reply With Quote
Old Feb 1, 2004, 11:55 AM   #4 (permalink)
Denville
DriverHeaven Newbie
 
Join Date: Jan 2004
Location: Leeds, England
Posts: 6
Denville is on a distinguished road

Multiple displays

Judas, thanks for the thought!

Well, here is an excerpt from an e-mail I just sent to my colleague in USA, which explains all (METCOM is my application that uses the secondary displays):

<The big remaining problem was that of the PC restoring the secondary displays to the desktop everytime I re-booted (it did this regardless of PC or video card combination). It only happend after I had run METCOM and I was fairly sure it was modifying the registry with the display parameters when I got the DC for the display (when it was a rogue desktop it had exactly these settings). I trawled the net and MSDN for a clue virtually all week then I came across an old W98 article on the MS site describing how to detach a display programatically. You use ChangeDisplaySettingsEx() which I had looked at about a dozen times and which has no reference to detaching a display; you do it by setting all the parameters in the structure to zero. By using this call on start-up I can re-claim any ill-behaved displays, but better, by using it on shut-down after relinquishing the DC it stops the problem from arising.>

Thanks again for the interest, nice to talk to you.

Sincerely,
Denville.
Denville is offline   Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 05:56 AM. Copyright ©2008 DriverHeaven.net