OpenProcess in .net

Posted on 2004-07-30
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 490 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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : All lightning effects with instructions : http://www.mediaf…

615 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