WMI Methods on several PC

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.
 
V

Vlad

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top