UserMgrRelogin (FUN)ΒΆ
FUNCTION UserMgrRelogin : RTS_IEC_RESULT
Re-logs user in to the runtime system using an active user management. The user name must match to the user name used for the initial login of the user.
- InOut:
Scope
Name
Type
Comment
Return
UserMgrReloginRTS_IEC_RESULT- Error code
ERR_OK: User/password combination is valid
ERR_NOTINITIALIZED: The user management is not initialized or it is not loaded yet
ERR_RELOGIN: hUser known, but not logged in
ERR_FAILED: Password is wrong.
ERR_USER_MISMATCH: User name does not match
ERR_INVALID_HANDLE: hUser is invalid or unknown
Input
hUserRTS_IEC_HANDLEHandle to the user
pszUserREFERENCE TO STRING
Name of the user, limited to 59 chars
pszPasswordREFERENCE TO STRING
Password (plain text), limited to 59 chars