Using Win32 functions in Visual FoxPro Image Gallery
System Shutdown
Code examples:
Locking the workstation
..msdn    Add comment     W32 Constants      Translate this page
The LockWorkStation function locks the workstation"s display, protecting it from unauthorized use.
Code examples:
Locking the workstation
BOOL LockWorkStation(VOID);
FoxPro declaration:
DECLARE INTEGER LockWorkStation IN user32
This function has no parameters.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
This function is callable only by processes running on the interactive desktop. In addition, the user must be logged on, and the workstation cannot already be locked.

It has the same result as pressing Ctrl+Alt+Del and clicking Lock Workstation. To unlock the workstation, the user must log in. To receive notification when the user logs in, use the WTSRegisterSessionNotification function to receive WM_WTSSESSION_CHANGE messages.

Windows NT/2000/XP: Included in Windows 2000 and later.
Windows 95/98/Me: Unsupported.
Word Index links for the LockWorkStation :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2002-04-16 22:25:49
Modified: 2006-03-30 13:22:36
Visited in last 7 days: 44
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
10 sec.Function: 'GetTcp6Table'
19 sec.Function: 'InternetFindNextFile'
27 sec.Function: 'FindVolumeMountPointClose'
36 sec.Function: 'WNetGetNetworkInformation'
44 sec.Function: 'CM_Get_Sibling_Ex'
55 sec.Function: 'CeFindNextDatabaseEx'
1.07 min.Function: 'getprotobyname'
1.22 min.Function: 'SHCreateDirectory'
1.38 min.Function: 'InternetTimeFromSystemTime'
1.53 min.
Function group: 'GDI+ Image'
Advertise here!