LogonCurrentUser() 函数
- Last UpdatedSep 24, 2024
- 1 minute read
使用当前登录到 Windows 操作系统的用户帐户登录 InTouch。
-
配置了操作系统安全性的 InTouch:用户登录到 WindowViewer。
-
配置了 ArchestrA 安全性的 InTouch:用户必须为基于 ArchestrA 操作系统用户安全性或基于 ArchestrA 操作系统组安全性的成员。
-
配置了基于 ArchestrA 操作系统用户安全性或 ArchestrA 操作系统组安全性的 InTouch 且该用户帐户已配置智能卡凭证:用户使用智能卡凭证登录。如果将智能卡从读取器中取出,则会注销该用户。
类别
安全性
语法
IntegerResult = LogonCurrentUser();
返回值
如果登录失败,则返回 -1,并且不更改指定给 $Operator、$OperatorName、$OperatorDomain 及 $AccessLevel 的值。
附注
此功能仅用于 InTouch 脚本,无法用于 ArchestrA 客户端脚本。
示例
IntegerResult = LogonCurrentUser();