Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


OpenProcess in .net

Posted on 2004-07-30
Medium Priority
Last Modified: 2008-03-10

For, What is the equivalent of calling OpenProcess in vb
For, what is the equivalent of calling GetExitCodeProcess

Question by:kamleshmistry
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 37

Expert Comment

ID: 11681891
you can use the process object in System.Diagnostics to do this ...
LVL 18

Accepted Solution

DotNetLover_Baan earned 1960 total points
ID: 11681916
Hi there,
1) >>"What is the equivalent of calling OpenProcess "<<
           Dim process1 As System.Diagnostics.Process

2) >>"what is the equivalent of calling GetExitCodeProcess"<<

Useful Links for you:

Author Comment

ID: 11682022

I found process.start
but not

Author Comment

ID: 11682036
Never mind...  I got it...
LVL 37

Expert Comment

ID: 11682050
actually openprocess connects to an existant process it does NOT start one  ... which the process object can also do ...

to get the exit code ... you would waitforexit() and then use the error code property

Featured Post

Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question