在Windows服务中帮助WMI [英] Help with WMI in windows services

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

问题描述

作为一个相当新的.net开发人员,我正在寻找一些关于.net 4.0框架中VB.net中WMI的帮助。



我将从一个开始我想要实现的概述。我有几个Windows编写的服务,我希望将这些服务正在进行的工作暴露给管理应用程序,以便操作员查看当前正在进行的工作或服务当前是否处于空闲状态。



经过一些谷歌搜索后,我发现了WMI的概念,它似乎迎合了我想要达到的目标。



我想我已经开始编写我想要从Windows服务中公开的内容。我遇到的问题是如何解决管理应用程序可以看到的某种事件,让它知道某些事情发生了变化,并用信息更新其UI。



经过更多的谷歌搜索后,我有点卡住,因此问题。



我很乐意知道是否有更好的WMI替代品我应该使用。



我希望这是足够的信息,可以让某人指出我正确的方向。



提前致谢,



Dave

As a fairly new .net developer I am looking for some help with WMI in VB.net on the .net 4.0 framework.

I will start with an overview of what I am trying to achieve. I have several windows services that I have written and I want to expose the work these services are doing to a management application for the operators to see what work is currently being done or whether the service is currently idle.

After some googling I came across the concept of WMI which seemed to cater for what I was trying to achieve perfectly.

I think I have got my head round coding the things I want to expose from the windows service. What I am having trouble with is how I can fire an event of some sort that the management application can see to let it know that something has changed and update its UI with the information.

After a lot more googling I am getting a bit stuck and hence the question.

I would be happy to know if there are better alternatives to WMI that I should be using.

I hope this is enough information to enable someone to point me in the right direction.

Thanks in advance,

Dave

推荐答案

嗯,它有点旧,但你可以先阅读这个 [ ^ ]。自.NET 2.0以来,System.Management命名空间根本没有太大变化,因此一切仍然适用。
Well, it''s a bit old, but you can start by reading this[^]. The System.Management namespace hasn''t changed much at all since .NET 2.0, so everything still applies.


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

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