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
UserMgrRelogin
RTS_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
hUser
RTS_IEC_HANDLE
Handle to the user
pszUser
REFERENCE TO STRING
Name of the user, limited to 59 chars
pszPassword
REFERENCE TO STRING
Password (plain text), limited to 59 chars