View Single Post
  #4 (permalink)  
Old 12-27-2008, 8:59 AM
JohnH's Avatar
JohnH JohnH is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,322
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

WMI Win32_Process class and Terminate method doesn't allow you to try and close the other process gracefully, it does the same as Kill. A better option if you don't want to use the .Net Process class is to use SendMessage API with WM_Close message, but Process class is of course the easiest option.
__________________
Reply With Quote