ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SysDetectLockedSession (Function)
In french: SysDétecteSessionVerrouillée
Detects the change of lock for the Windows session.
Example
IF NOT SysDetectLockedSession() THEN
Error("Failure detecting the change of lock for the Windows session.")
END
Syntax
<Result> = SysDetectLockedSession(<WLanguage procedure>)
<Result>: Boolean
  • True if the detection regarding the change of lock for the Windows session was implemented,
  • False otherwise.
<WLanguage procedure>: Procedure name
Name of WLanguage procedure ("callback" procedure) that will be called whenever the lock of Windows session changes.
This procedure has the following format:
PROCEDURE <Procedure name> (<Lock of Windows session>)
<Lock of Windows session> is a constant that is a set to:
sysSessionLockedThe Windows session is locked.
sysSessionUnlockedThe Windows session is unlocked.
Remarks
If SysDetectLockedSession is used in a service, call Multitask in the runtime code of service to receive the Windows messages.
Multitask(-1)
Related Examples:
Managing the Windows session Unit examples (WINDEV): Managing the Windows session
[ + ] Managing the Windows session by programming with the WLanguage functions.
This example explains how to close the Windows session, stop the system and restart the PC, etc.
Component: wd290std.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help