Re: Lock XP Workstation Programmatically

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 05/07/03


Date: Wed, 07 May 2003 02:39:02 +0200


Marcelo wrote:

> I'm developing a software to manage a Lan House. One of the issues I'm
> struggling with is how to password lock the client workstation after
> his time has expired. The first thing that came to my mind was to use
> a screensaver, this approach works if the user is using 'normal'
> desktop applications, but the screensaver is not activated if the user
> is running a game like warcraft III or Counter Strike (the most played
> games). Do any of you have an idea of what can I do to solve this
> problem?

Hi

Try

%SystemRoot%\System32\rundll32.exe user32.dll,LockWorkStation

(same as Window Key-L). Note that the part after the comma is case sensitive.

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Relevant Pages

  • Re: SC: Fields of Isis (multiplayer)
    ... I tried my first basic macro on ... a skirmish game, it worked 6 out of 8 times. ... while you ignore the problems with varying zoom levels ... Commander allows you to record positions so you can do real scripting ...
    (comp.sys.ibm.pc.games.strategic)
  • Re: Supreme Commander
    ... recognition with this game, but have never messed with it before. ... and it includes scripting. ... a good speaking voice is the most important ... on a digital recorder, I think that improved my speech. ...
    (comp.sys.ibm.pc.games.strategic)
  • Re: Hunting 3d Construction Kit projects...
    ... I wrote a small 3DCK game for the 2006 crap games compo, ... Command Language instructions, etc, by pressing Caps Shift + x ... If it has any scripting at all in it then it'll probably be ... couple of C64 Construction Kit titles last night but the site that WOS ...
    (comp.sys.sinclair)
  • Re: effecient software engineering
    ... >> I read that scripting is very useful in software engineering. ... >> from the core game engine. ... >> I have heard that Perl is widely used in the game programming ... Can perl scripting used for this? ...
    (comp.lang.perl.misc)
  • Re: looking for 3d graphic designer ideas
    ... Maybe even with a build in scripting engine to create good game prototypes. ... My plan is to recombine them with a High Level Language such as Common Lisp. ... On the other hand, Maya is all about hand animators, exactly the opposite business model from what I'm talking about. ...
    (comp.games.development.design)