gpt4 book ai didi

windows - 无法将带有 Skype4COM 的 Windows 服务附加到 Skype 客户端

转载 作者:可可西里 更新时间:2023-11-01 14:36:38 25 4
gpt4 key购买 nike

我试图创建一个允许与 Skype 客户端交互的 Windows 服务。

我正在使用 SKYPE4COM.DLL 库。

当我创建一个简单的控制台或 win32 应用程序时,一切正常(我有这个应用程序的 Skype 请求,它运行良好)。但是当我尝试将这个应用程序作为服务运行时,我有一个错误

Service cannot be started. System.Runtime.InteropServices.COMException (0x80040201): Wait timeout.
at SKYPE4COMLib.SkypeClass.Attach(Int32 Protocol, Boolean Wait)
at Commander.Commander.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

而且我没有关于连接到 Skype 的进程的通知。

你能给我建议如何将服务附加到 Skype 客户端,或者我是否需要更改我的 Skype 设置?

最佳答案

由于 Windows 用户 ID 安全限制,我认为这是不可能的。您必须在与 Skype 相同的用户下运行您的应用程序,否则它将无法连接。

关于windows - 无法将带有 Skype4COM 的 Windows 服务附加到 Skype 客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14518698/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com