PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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(<Procedure name>)
<Result>: Boolean
  • True if the detection regarding the change of lock for the Windows session was implemented,
  • False otherwise.
<Procedure name>: Character string (with quotes)
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:
sysSessionUnlockedThe Windows session is unlocked.
sysSessionLockedThe Windows session is locked.
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 : wd240std.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment