Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Wie sperre ich Windows? (https://www.delphipraxis.net/73111-wie-sperre-ich-windows.html)

blablab 12. Jul 2006 14:10


Wie sperre ich Windows?
 
Hallo!

ich kenne:

ExitWindowsEx(EWX_LOGOFF, 0); = Abmelden
ExitWindowsEx(EWX_POWEROFF, 0); = Herunterfahren
ExitWindowsEx(EWX_REBOOT, 0); = Neustarten
SetSystemPowerState(False, True); = Ruhezustand
SetSystemPowerState(True, True); = Standby

Doch wie sperre ich Windows?
(Das was die Tastenkombination "<Windows-Taste>-<L>" macht)

Und brauche ich für das Sperren die TokenPrivileges??

Grüße
Simon

Hulig4n 12. Jul 2006 14:19

Re: Wie sperre ich Windows?
 
Suche mal nach LockWorkStation ...

blablab 12. Jul 2006 14:23

Re: Wie sperre ich Windows?
 
Vielen Dank!
Genau das hab ich gesucht!
Hätte nicht gedacht, dass das so einfach geht :-D


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:10 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz