Check out SystemParametersInfo with the SPI_SETLOWPOWERACTIVE and SPI_SETPOWEROFFACTIVE parameters. According to the docs, this only works in Windows 98 or later and Windows 2000 or later (basically all the versions of Windows that support APM). It is also supported under Windows 95 but only if you thunk it down to a 16-bit API call which is where it might get complicated. See the following link for details:
http://msdn.microsoft.com/library/en-us/sysinfo/base/systemparametersinfo.asp I haven't tried it myself but you might have to call the API regularly in order to keep the monitor off. Otherwise the monitor might power back up if you move the mouse or touch a key on the keyboard. You should also think about what might happen if VNC crashes while you are in "Dark mode". If the user can simply move the mouse to wake up the monitor, no problem. Hope it helps... Michael At 02:32 AM 2002-09-19, you wrote: >[ On Wednesday, September 18, 2002 at 11:07:56 (-0500), Jacob Hoover wrote: ] > > Subject: RE: Blankscreen while server connected > > > > I wounder if anybody has ever tried to use the newer monitors Advanced > Power > > Managment features to just shut the monitor off. I don't think this would > > be that difficult. > > > > Hmmm..... > > > > Jake Hoover > >What I can tell you about that: It works - at least on Windows NT and >2000! > >We have implemented such a thing for a customer. Unfortunately, my >Windows/Graphics-fu is not so good - so I had to use a proprietary >library to do the real APM management for the different graphic >chipsets. I ended up getting a (non free) device driver and a DLL that >allows me to say "turn monitor signal on/off". > >What I implemented on top of that is changes to VNC/TightVNC to call >that code at the appropriate time (upon connection etc.etc.) > >I can obviously not share the driver/DLL stuff. I can and will share >the VNC addons, if somebody is able to do provide such a >APM-knowledgable library. > >CU, Joe > > > > Hi, > > > > > > It's possible to disable the remote client screen to blank or enter > > > into screensaver mode while server connected. This will tighten the > > > security of our system. Thank >_______________________________________________ >VNC-List mailing list >[EMAIL PROTECTED] >http://www.realvnc.com/mailman/listinfo/vnc-list > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.384 / Virus Database: 216 - Release Date: 2002-08-21 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 2002-08-21 _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
