VNC on NT - Suppressing Wallpaper graphics
the wikster
wik "at" rabidpenguin.org
Thu, 03 Feb 2000 11:08:54 +0000
On Wed, 2 Feb 2000, Walden Leverich wrote:
> Dan,
>
> Actually he has received several responses and I am working on a patch that
> will disable the wallpaper on connect.
>
> Now I have a question for all the windows programmer types out there. Does
> anyone know how to determine the current wallpaper setting?
> SystemParametersInfo() has a documented option to get the current wallpaper
> but it is not defined in WinUser.h and even if it was it is only valid in
> Windows 2000. I can set the wallpaper to nothing, but I don't know what it
> was so I can't restore it. I'll be searching more, but I wonder if anyone
> already has a solution.
>
> -Walden
That function has two parameters that are of interest:
SPI_SETDESKWALLPAPER and SPI_GETDESKWALLPAPER
I remember using both of these to do exactly what you were talking about
with WinVNC (although the code is long lost). I stored the wallpaper
filename in temp registry entry (it's just a string) and pulled it back
when the user disconnected. This worked like a charm on NT 4.0 and I'm
reasonably sure that it works just as well on other versions of windows.
My winuser.h from VC++ 5.0 has those defines in it.
Cheers,
JCSmolens
@@@
(o o)
,.,.,.,.,.,.,.,.,.,.,.,.,.,oOOo ( ) oOOo,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,
-----------Jared-C-Smolens----------jsmolens+ "at" andrew.cmu.edu-----------
---------412-862-2154---------http://www.rabidpenguin.org--------------
---Elecrical-and-Computer-Engineering-----Carnegie-Mellon-University---
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------