RE: How to lock winnt/2000 station in a C program

“rundll32.exe user32.dll,LockWorkStation” will lock your computer.
There should be a way to call it programmatically.

Niraj

-----Original Message-----
From: Fr?d?ric BILLARD [mailto:xxxxx@adhersis.com]
Sent: Tuesday, April 03, 2001 2:48 PM
To: NT Developers Interest List
Subject: [ntdev] How to lock winnt/2000 sation in a C program

Hi all !

Is there somebody knows how to lock (sending en message or something else) winnt4/nt2000 workstation in a C/MFC program ?

By avance Thank’s

Frederic.

mailto : xxxxx@adhersis.com mailto:xxxxx


You are currently subscribed to ntdev as: xxxxx@netapp.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx>

To lock a workstation programmatically, you can use the Win32
API “LockWorkStation”. But this was introduced in Win2K and
is not supported in Win NT.

How to Lock a Workstation from the Command Line
http://support.microsoft.com/support/kb/articles/Q262/6/46.ASP http:

Niraj

-----Original Message-----
From: Jaiswal, Niraj
Sent: Tuesday, April 03, 2001 3:17 PM
To: ‘NT Developers Interest List’
Subject: RE: [ntdev] How to lock winnt/2000 station in a C program

“rundll32.exe user32.dll,LockWorkStation” will lock your computer.
There should be a way to call it programmatically.

Niraj

-----Original Message-----
From: Fr?d?ric BILLARD [mailto:xxxxx@adhersis.com]
Sent: Tuesday, April 03, 2001 2:48 PM
To: NT Developers Interest List
Subject: [ntdev] How to lock winnt/2000 sation in a C program

Hi all !

Is there somebody knows how to lock (sending en message or something else) winnt4/nt2000 workstation in a C/MFC program ?

By avance Thank’s

Frederic.

mailto : xxxxx@adhersis.com mailto:xxxxx


You are currently subscribed to ntdev as: xxxxx@netapp.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx></http:>