WMI Methods on several PC

  • Thread starter Thread starter LChambers
  • Start date Start date
L

LChambers

Hello,

I try in my application to execute WMI Methods, for example to
Terminate Internet Explorer processes.
The problem is that if I put some Release() to IWbemLocator and
IWbemService at the end of my program, when I run it again Release
function crash it.

I have a class that list instances then I send all to another class
that deals with Wmi Method. And that crash also my first class for WMI
operations and CoCreateInstance fails.

It's a big problem for me.
I need help.

Thanks in advance.
 
LChambers said:
Hello,

I try in my application to execute WMI Methods, for example to
Terminate Internet Explorer processes.
The problem is that if I put some Release() to IWbemLocator and
IWbemService at the end of my program, when I run it again Release
function crash it.

I have a class that list instances then I send all to another class
that deals with Wmi Method. And that crash also my first class for WMI
operations and CoCreateInstance fails.

It's a big problem for me.
I need help.

Thanks in advance.

WMIC /node:"PCName" PROCESS WHERE Name="iexplore.exe" CALL Terminate
 
Back
Top