通过Windows服务访问对象 [英] Accessing objects throught windows services

查看:92
本文介绍了通过Windows服务访问对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过Windows服务访问对象(我们可以在ROT中注册的任务管理器中看到,如WINWOR> EXE)?

这些对象可以通过Windows窗体应用程序轻松访问,但这些功能对窗口服务不起作用。请指导

解决方案

是的,你可以,但是这与任务管理器显示的任何内容无关,你会对其他东西感到困惑。



两种.NET技术基于远程对象或类似的概念:经典.NET远程处理和WCF。但是你需要学习它们来理解这些想法,特别是如果你想要使用它们中的任何一个。请参阅:





http://msdn.microsoft.com/en-us/library/aa185916.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/ms973857.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/kwdt6w2k%28v=vs.100%29.aspx [ ^ ],

http://msdn.microsoft.com /en-us/library/2e7z38xb%28v=vs.100%29.aspx [ ^ ];



< a href =http://en.wikipedia.org/wiki/Windows_Communication_Foundation> http://en.wikipedia.org/wiki/Windows_Communication_Foundation [ ^ ],

http://msdn.microsoft.com/en-us/vstudio/aa496123 [ ^ ],

http://msdn.microsoft.com/en-us/library/dd456779.aspx [ ^ ]。



-SA

is there a way to access objects ( that we can see in task manager registered in ROT like WINWOR>EXE) through windows services ?
these objects can b easily accessed through the windows form applications but those functions doesn''t work for window services. Please guide

解决方案

Yes, you can, but this is not related to anything shown by Task Manager, you are confusing something with something else.

Two .NET technologies are based on conception of "remote object" or similar to it: "classical" .NET remoting and WCF. But you need to learn them to understand the ideas, and especially if you want to use either of them. Please see:


http://msdn.microsoft.com/en-us/library/aa185916.aspx[^],
http://msdn.microsoft.com/en-us/library/ms973857.aspx[^],
http://msdn.microsoft.com/en-us/library/kwdt6w2k%28v=vs.100%29.aspx[^],
http://msdn.microsoft.com/en-us/library/2e7z38xb%28v=vs.100%29.aspx[^];

http://en.wikipedia.org/wiki/Windows_Communication_Foundation[^],
http://msdn.microsoft.com/en-us/vstudio/aa496123[^],
http://msdn.microsoft.com/en-us/library/dd456779.aspx[^].

—SA


这篇关于通过Windows服务访问对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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