Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lock your Screen/Desktop (tip)
Message
From
17/07/1997 16:55:21
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00040470
Message ID:
00040471
Views:
30
>Here is a piece of code which would lock your desktop. Any code before unlocking which changes the display on screen will not be seen by the user. Even if you run a form...
>
>DECLARE INTEGER GetDesktopWindow IN WIN32API
>DECLARE INTEGER LockWindowUpdate IN WIN32API ;
> INTEGER lnHandle
>lnDeskTopWin = GetDeskTopWindow()
>= LockWindowUpdate(lnDeskTopWin)
>
><>
>
>= LockWindowUpdate(0)

This is an interesting piece of code. I will certainly give it a try as I have a need for that in one of my applications.

BTW, you may create a FAQ "How to lock the desktop?". This can be a valuable piece of code for others.

Thanks.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform