WMI提供程序中的管道客户端无法从本地管道服务器读取 [英] pipe client inside WMI provider unable to read from local Pipe Server

查看:95
本文介绍了WMI提供程序中的管道客户端无法从本地管道服务器读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


是否可以在管道客户端和管道服务器之间进行organazie ipc,其中管道客户端驻留在WMI提供程序中?

is it possible to organazie ipc between pipe client and pipe server, where pipe client resides in WMI provider?


我的问题是当我将管道客户端放在wmi提供程序中时,客户端挂起从管道服务器读取数据。当我运行管道客户端作为Windows控制台应用程序一切都很好。

My problem is when i put pipe client inside wmi provider, the client hangs on reading data from pipe server. When i run pipe client as windows console application everything is fine.

推荐答案

它应该工作的AFAIK。但是,你现在正在越过安全边界。 WMI提供程序将在(可能是安全的)帐户中运行,而您的客户端不会。因此,您需要设置管道,以便任何人(或您运行
客户端的任何人)都可以访问管道。管道也需要是全局的,但是如果你在控制台应用程序中工作那么就已经完成了。
AFAIK it should work. However you're crossing security boundaries now. The WMI provider is going to be running in a (probably secure) account whereas your client won't be. Therefore you'll need to set up the pipe so that anyone (or whomever you run your client as) can access the pipe. The pipe would also need to be global but if you have it working in a console app then that is already done.


这篇关于WMI提供程序中的管道客户端无法从本地管道服务器读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆