且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用非本地用户名登录

更新时间:2023-12-03 23:14:52

您可以使用OC自动化API使OC使用特定凭据登录。使用 IMessenger :: Signin()方法执行此操作。但是,如果您想要的是让OC在您的应用使用其他凭据时使用用户的凭据,那么这将无效。桌面上一次只能有一个正在运行的OC副本,它一次只能使用一组用户凭据登录到OCS。

如果您希望您的应用程序使用其他一些在为用户登录OC时,您可以使用应用程序中的UCC客户端API或CWA AJAX API(如果您有可用的CWA 2007服务器),并且这些连接可以使用来自OC连接的单独凭据。 br />

You can use the OC automation API to cause OC to log in with specific credentials.  Use the IMessenger::Signin() method to do that.  However, if what you want is to have OC use the user's credentials while your app uses some other credentials, then that won't work.  There can only be one running copy of OC on the desktop at one time and it can only log in to OCS with one set of user credentials at a time.

If you want your app to use some other credentials while OC is logged in for the user, the you can use either the UCC client API in your app or the CWA AJAX API (if you have a CWA 2007 server available) and those connections can use separate credentials from the OC connection.