UserMgrGetSessionUser (FUN)
FUNCTION UserMgrGetSessionUser : RTS_IEC_HANDLE
Retrieves the user handle assigned to a CODESYS online session.
- InOut:
Scope
Name
Type
Comment
Return
UserMgrGetSessionUserRTS_IEC_HANDLEHandle of the user or RTS_INVALID_HANDLE if not available.
Input
sessionIdUDINTSession id of which the user handle should be read.
pResultPOINTER TO RTS_IEC_RESULT
- Pointer to error code. One of:
ERR_OK: User is available
ERR_NOTINITIALIZED: The session management is not initialized
ERR_NO_OBJECT: The session is not available