Description: | Logs the user onto OfficeTalk using the same credentials as the user currenly logged on to the running instance of OfficeTalk. |
Syntax: | object.LatchLogon(applicationObject) |
Parameters: | |
object | Required, the Session object |
applicationObject | The application object returned by a call to CreateObject("OfficeTalk.Application"). |
Returns: | A User object |
Remarks: | This function is used to log on to a session using the same login name and password as used to log into the current running instance of OfficeTalk. This function is provided for developers who use OfficeTalk's ability to call a method in an automation object when a particular custom context menu has been selected. When such an event occurs, the only way to log onto a session using the same credentials as the user currently logged on to OfficeTalk, is by logging on to the session using the LatchLogon method. |
Example: |
Dim user As Object
Set ot = CreateObject("OfficeTalk.Application")
Set session = CreateObject("OfficeTalk.Session")
Set user = session.LatchLogon(ot)