Solved

OpenProcess in .net

Posted on 2004-07-30
5
641 Views
Last Modified: 2008-03-10

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


0
Comment
Question by:kamleshmistry
  • 2
  • 2
5 Comments
 
LVL 37

Expert Comment

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

Accepted Solution

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

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

Useful Links for you:
http://www.dotnetspider.com/Technology/KBPages/394.aspx
http://www.devx.com/dotnet/Article/7914
0
 

Author Comment

by:kamleshmistry
ID: 11682022

I found process.start
but not
process.exitcode
0
 

Author Comment

by:kamleshmistry
ID: 11682036
Never mind...  I got it...
thanks...
0
 
LVL 37

Expert Comment

by:gregoryyoung
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
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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 video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 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