VisuUserMgmt.ChangeUser4 (METH) ¶ METHOD ChangeUser4 : BOOL Changes on a user database. The edit type can be: VUM_MODIFY, VUM_ADD, VUM_REMOVE AND VUM_INSERT For runtime-based usermanagement VUM_ADD and VUM_INSERT do the same. InOut: Scope Name Type Comment Return ChangeUser4 BOOL Input pClientData POINTER TO VisuElems.VisuStructClientData It’s needed only in case of RTS-based user management dwUserDB DWORD It’s needed only in case of legacy user management pvumUserNew POINTER TO VUM_UserInternal The user data with new data pvumUserOld POINTER TO VUM_UserInternal The user data with old data udiIndex UDINT Index to use for user list (only for legacy. Needed for VUM_MODIFY, VUM_REMOVE AND VUM_INSERT) eEditType VUM_EditType Activity to do
VisuUserMgmt.GetUsers4 (METH) ¶ METHOD GetUsers4 : DWORD Gets the users InOut: Scope Name Type Comment Return GetUsers4 DWORD Input pClientData POINTER TO VisuElems.VisuStructClientData It’s needed only in case of RTS-based user management dwUserDB DWORD It’s needed only in case of legacy user management udiStartIndex UDINT The start index in a list of users udiEndIndex UDINT The end index in a list of users pArr POINTER TO ARRAY [0..0] OF VUM_UserInternal The user data which should be filled udiArrSize UDINT The size of the given user array
VisuUserMgmt.LogoutRts (METH) ¶ METHOD LogoutRts It does a logout in RTS InOut: Scope Name Type Input pClientData POINTER TO VisuElems.VisuStructClientData
VisuUserMgmt.Initialize (METH) ¶ METHOD Initialize : BOOL InOut: Scope Name Type Return Initialize BOOL Input parrUserGroups POINTER TO ARRAY [0..0] OF VUM_UserGroup parrUserGroupTextIds POINTER TO ARRAY [0..0] OF DWORD dwArraySize DWORD
VisuUserMgmt.LastResult (PROP) ¶ PROPERTY LastResult : UDINT
VisuUserMgmt.SetLastError (METH) ¶ METHOD SetLastError : BOOL InOut: Scope Name Type Return SetLastError BOOL Input udiLastError UDINT
VisuUserMgmt.ChangeUser (METH) ¶ METHOD ChangeUser : BOOL InOut: Scope Name Type Comment Return ChangeUser BOOL Input dwUserDB DWORD The ChangeUser action is always done on a copy DB file pvumUser POINTER TO VUM_User udiIndex UDINT eEditType VUM_EditType
VisuUserMgmt.ChangeUserPassword (METH) ¶ METHOD ChangeUserPassword : BOOL InOut: Scope Name Type Comment Return ChangeUserPassword BOOL Input dwUserDB DWORD The ChangeUser action is always done on a copy DB file wstUserName WSTRING wstNewPassword WSTRING wstOldPassword WSTRING
VisuUserMgmt.CheckLoginIntern (METH) ¶ METHOD CheckLoginIntern : UDINT It checks the login to see if the credentials are OK. The Login check is always done on the main user DB file. The result is the user group ID or an INVALID_USERGROUP_ID if the check fails. InOut: Scope Name Type Return CheckLoginIntern UDINT Input wstUserName WSTRING wstPassword WSTRING Output wstFullName WSTRING dwUserGroupID DWORD
VisuUserMgmt.CheckLoginWithGroupIDIntern (METH) ¶ METHOD CheckLoginWithGroupIDIntern : UDINT The Login check is always done on the main user DB file. The result is the user group ID or an INVALID_USERGROUP_ID if the check fails. InOut: Scope Name Type Return CheckLoginWithGroupIDIntern UDINT Input wstUserName WSTRING wstPassword WSTRING dwUserGroupID DWORD Output wstFullName WSTRING