PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment