简体   繁体   English

Windows WMI - Win32_ProcessStartTrace 和 __InstanceCreationEvent 之间有什么区别(和顺序)?

[英]Windows WMI - What is the difference (and order) between Win32_ProcessStartTrace and __InstanceCreationEvent?

Just getting started with WMI, and I am trying to understand what is the difference between Win32_ProcessStartTrace and __InstanceCreationEvent .刚刚开始使用 WMI,我试图了解Win32_ProcessStartTrace__InstanceCreationEvent之间的区别。 They both are available when a new process starts, however which one is first ?当一个新进程开始时,它们都可用,但是哪个是第一个?

I have tested several examples provided by Microsoft and I cannot see any major difference like performance issues, besides the fact that one provides some useful=l information and the other does not.我已经测试了 Microsoft 提供的几个示例,除了一个提供一些有用的信息而另一个不提供这一事实之外,我看不出有任何重大差异,例如性能问题。 (or does it?) (或者是吗?)

From the documentantion for Win32_ProcessStartTrace and __InstanceCreationEvent we can see quite a difference, as the Win32_ provides more details like ProcessID whilst __Instance does not.Win32_ProcessStartTrace__InstanceCreationEvent的文档中,我们可以看到很大的不同,因为 Win32_ 提供了更多详细信息,例如 ProcessID 而 __Instance 没有。

If one wants to monitor process creation effectively (asynchronously) which one of these 2 should be used ?如果想要有效地(异步)监控流程创建,应该使用这两个中的哪一个?

Getting information about the process is a must, at least the ProcessID.获取有关进程的信息是必须的,至少是 ProcessID。

A good explanation is much appreciated, I`m sure others are interested as well.非常感谢一个很好的解释,我相信其他人也会感兴趣。

_InstanceCreationEvent有一个TargetInstance字段,对于新进程,它是一个Win32_Process对象,它具有Win32_ProcessStartTrace提供的大多数相同字段(以及更多)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows的gcc端口中thread_posixs和thread_win32有什么区别? - What's the difference between thread_posixs and thread_win32 in gcc port of Windows? win32应用程序,Windows窗体应用程序和控制台应用程序有什么区别? - what is the difference between win32 application, windows form application and console application? C++中定义的WIN32和_WIN32有什么区别 - What's the difference between the WIN32 and _WIN32 defines in C++ _WINDOWS_ 和 _WIN32 / _WIN64 宏的使用有区别吗? - Is there a difference between use of _WINDOWS_ and _WIN32 / _WIN64 macros? Win32 API中的MK_CONTROL和VK_CONTROL有什么区别? - What is the difference between MK_CONTROL and VK_CONTROL in Win32 API? 使用 win32 function 和通过 system() 传递 cmd 命令有什么区别? - What is the difference between using a win32 function and passing a cmd command through system()? 在WMI中解析Win32_PnPEntities的层次结构 - Resolving hierarchy of Win32_PnPEntities in WMI WMI Win32_OperatingSystem OSProductSuite 在 Windows XP 上给出了错误的值 - WMI Win32_OperatingSystem OSProductSuite gives incorrect value on Windows XP Win32 API中PathAppend和PathCombine之间的区别 - Difference between PathAppend and PathCombine in Win32 API 在Windows操作系统上的Python和Win32之间的IPC - IPC Between Python and Win32 on Windows OS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM