WMI wqleventquery没有时间跨度? [英] WMI wqleventquery without timespan ??
问题描述
http://msdn.microsoft.com/zh-cn/library/system.management.wqleventquery.withininterval%28v=VS.85%29.aspx
http://msdn.microsoft.com/en-us/library/system.management.wqleventquery.withininterval%28v=VS.85%29.aspx
在上面的链接示例中,我正在使用完全相同的代码.但它具有及时"功能.我假设它在给定的时间范围内进行搜索.是否有其他方法可以仅在流程开始或终止时触发,还是存在 在这里使用相同内容并删除时间跨度的方法.
I am using the very same code right there in the example of the link above. but it has a "Within time" and i assume it makes a search per the time span given. is there any other way just to trigger when a process is started or termininated or is there a way to use the same thing in here and remove the timespan.
实际上,我要执行的操作是阻止某些应用程序(EXE)打开,并且如果我不必终止它们,则更好(因为强行终止打开的应用程序可能会损害该应用程序).所以使用这个时间跨度的东西对我不利.
actually what i want to do is prevent some applications(EXEs) from opening and its better if i dont have to terminate them ( because terminating an opened application by force could harm the application). so its not good for me to use this time span thing.
推荐答案
欢迎来到MSDN论坛.
WqlEventQuery构造函数提供时间戳和不带时间戳的方法.
看这个链接
http://msdn. microsoft.com/zh-CN/library/system.management.wqleventquery.wqleventquery(v=VS.85).aspx
由
探路者.
JoSwa
Hi,
Welcome To MSDN Forums.
WqlEventQuery Constructor provides with Time stamp and withou time stamp methods.
Look at this link
http://msdn.microsoft.com/en-us/library/system.management.wqleventquery.wqleventquery(v=VS.85).aspx
By
A Pathfinderr.
JoSwa
这篇关于WMI wqleventquery没有时间跨度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!