An Idea: Logout from server.
Donnelly, Mark J.
DonnellyM "at" umsystem.edu
Thu, 24 Sep 1998 15:20:16 +0000
Hey:
How about as a kludge you send the necessary keystrokes... VNC is already
set up to do that, so you would only have to code up a dialog for the server
(accessible off the settings dialog) which specifies the key sequence to
execute.
For example, the key sequence on my NTWS would be C-A-D, followed by a
return (I have the Novell integration, and I can't remember if that changed
the sequence or not). So, when the VNC Server gets a disconnect, it would
then send the locally-saved sequence to initiate a station lock.
Other than that, the only references (other than LockWorkStation, the NT5
function) that I found in MSDN regarding locking a workstation are in the
GINA stuff (replacing WinLogon) in MSDN under:
Specifications -> Windows NT Security: Replacable Winlogin user interface
If you want to invoke a screensaver and call it fine (I'm not sure if this
will work though), you can issue a WM_SYSCOMMAND with a wParam of
SC_SCREENSAVE, and DefWndProc should hopefully take care of it for you.
Hope some of this helps,
--Mark Donnelly
-----Original Message-----
I haven't found any way of locking the workstation on WinNT 4 as yet. NT5
will have a function to do it, according to the docs.
So option 1 isn't likely to be implemented any time soon, unless someone
knows a good way of doing it - anyone know how locked screen-savers work?
---------------------------------------------------------------------
The VNC mailing list - see http://www.orl.co.uk/vnc/intouch.html
---------------------------------------------------------------------