Inhibit logons by setting a semaphore
──────────────────────────────────────────────────────────────────────────────
Syntax
H_InhibitLogOn( cText , lCheck )
Arguments:
cText - Text to output to batch file
lCheck - If .T., check to see if users are logged on
Returns:
.T. if lCheck is .F.
Otherwise returns .T. if users are not logged on
Description:
The text cText is written to the batch files H_BATCH, which must
be present in the TABLES directory (as must it's audit table). This
text will appear on screen when a user attmpets to logon.
The sempaphore can be cleared by calling H_EnableLogOn()
Examples:
Stop users from logging on during batch processing :
H_InhibitLogOn( "Batch processing in progress" , .T. )
Header File: H_LIB52.CH
Source: INHIBLOG.PRG
Author: Martin Colloby