API | ITcUserManagement Methods 5.7.1.1 ITcUserManagement::LoginUser | ITcUserManagement::LoginUser Logs in a user to the currently selected user database and make that user the active user. Fails if the user does not exist or the password is invalid. In this case, an explanatory error message is set via IErrorInfo . Signature HRESULT LoginUser(BSTR bstrUserName, BSTR bstrPassword); Parameter Return value See also SelectUserDB [ } 72] 5.7.2 ITcUserManagement2 | ITcUserManagement2 Inherits from: ITcUserManagement [ } 71] Extends user management to allow selection of the active user database at runtime.
Methods 5.7.2.1 ITcUserManagement2::SelectUserDB | ITcUserManagement2::SelectUserDB Selects the active user database. The specifier can be a name, an ID, or a path to a .tcudb file. If a file is specified, it is first copied to the local user database storage, if it is not already there. If the resolution fails or if the selection is not possible in the current state, the method returns E_FAIL and sets an explanatory error message via IErrorInfo . The user change dialog is suppressed depending on the SilentMode setting in the automation settings. Signature HRESULT SelectUserDB(BSTR bstrUserDBSpecifier); Parameter TE1000 72 Version:
1.7.0 Method Description LoginUser [} 72] Logs in a user with a username and password. Name Type Description bstrUserName BSTR [in] Name of the user. bstrPassword BSTR [in] Password of the user. Name Type Description (HRESULT) HRESULT S OK upon successful login, E FAIL if the username or _ _ password is invalid. Method Description SelectUserDB Selects the active user database by name, ID, or file. Name Type Description bstrUserDBSpecifier BSTR [in] Name, ID, or path (.tcudb) of the user database to be activated.