Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/138.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 是否从interface Indicate()回调中再次调用ExecNotificationQueryAsync()?_C++_Windows_Com_Wmi - Fatal编程技术网

C++ 是否从interface Indicate()回调中再次调用ExecNotificationQueryAsync()?

C++ 是否从interface Indicate()回调中再次调用ExecNotificationQueryAsync()?,c++,windows,com,wmi,C++,Windows,Com,Wmi,我正在使用WMI跟踪进程创建链(进程1.exe创建进程2.exe,2.exe创建3.exe等)。一切正常,除了当创建一个进程时,我试图从接口Indicate()方法中发出另一个ExecNotificationQueryAsync(),该方法会触发查询 SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_Process' AND TargetInstance.ParentProcessId =

我正在使用WMI跟踪进程创建链(进程1.exe创建进程2.exe,2.exe创建3.exe等)。一切正常,除了当创建一个进程时,我试图从接口Indicate()方法中发出另一个ExecNotificationQueryAsync(),该方法会触发查询

SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_Process' AND TargetInstance.ParentProcessId = 1234
其中,父进程ID设置为导致此调用的进程的PID(Win32_process.ProcessId),而不是在为当前查询调用CancelAsyncCall()之前。查询的语法是可以的,因为它第一次工作正常,但是只要我发出带有新父PID的ExecutionQueryAsync(),就不再调用Indicate(),尽管正在创建进程

我做错了什么