Accessible Variables

Aside from the SecurityCheck function, there are also several Security Manager variables that can be monitored (but NEVER changed); this may be useful for implementing various actions in VTS application code based on variable values. Where applicable, distinctions are made between local and global variables:

      Local variables are those that vary among all PCs running a particular application.

      Global variables are those that always have the same value on all PCs.

\SecurityManager\SecMgrRPCStatus

This local variable points to the local status of the Security Manager's RPC connection, and may have the following values:

 

Value

Description

0

The Security Manager is not connected.

1

The Security Manager is a client on this machine.

2

The Security Manager is a server on this machine.

 

The following global constants specify the bit positions for system privileges. These system privilege constants are the same for all VTS applications on all PCs. They should be used whenever security checking is required for a system privilege.

\SecurityManager\PrivBitConfigure

\SecurityManager\PrivBitAccountView

\SecurityManager\PrivBitAccountModify

\SecurityManager\PrivBitManager

\SecurityManager\PrivBitAdministrator

\SecurityManager\PrivBitAlarmInhibit

\SecurityManager\PrivBitManualData

\SecurityManager\PrivBitQuestionable

\SecurityManager\PrivBitAlarmAck

\SecurityManager\PrivBitAppClose

\SecurityManager\PrivBitStnMaskBypass

\SecurityManager\PrivBitParamView

\SecurityManager\PrivBitReleaseLock

\SecurityManager\PrivBitLockItem

\SecurityManager\PrivBitRemoveFile

\SecurityManager\PrivBitUpdate

\SecurityManager\PrivBitRollback

\SecurityManager\PrivBitPageAdd

\SecurityManager\PrivBitPageModify

\SecurityManager\PrivBitPageDelete

\SecurityManager\PrivBitTagAddCopy

\SecurityManager\PrivBitTagModify

\SecurityManager\PrivBitTagDelete

\SecurityManager\PrivBitInternetClient

\SecurityManager\PrivBitAlarmMute

\SecurityManager\PrivBitAlarmSilence

\SecurityManager\PrivBitHDVGroupModify

\SecurityManager\PrivBitHDVGroupSave

\SecurityManager\PrivBitHDVGroupDelete

\SecurityManager\PrivBitHDVPenModify

\SecurityManager\PrivBitNoteAdd

\SecurityManager\PrivBitAlarmPageAccess

\SecurityManager\PrivBitReportsPageAccess

\SecurityManager\PrivBitHDVAccess

\SecurityManager\PrivBitVICTools

The following global status variable is true when the Security Manager is operating in secured mode for a particular VTS application, and false when it is operating in unsecured mode (see Modes: Unsecured and Secured States).

\SecurityManager\Secured

The following local status variable is true when a user is logged on to a particular VTS application, and false when no one is logged on to that application. Consequently, a logon event causes a rising edge, and a logoff event causes a falling edge. Note that it is possible for this variable to have different values for different VTS applications that are running on the same PC.

\SecurityManager\LoggedOn

Topics in this section:

Security Manager Variable and Module Declarations

AlternateLogon Module

AlternateLogoff Module

Plug-in Modules

Logging

Files Related to the Security Manager

RPC Client/Server Assignments