Solved

OpenProcess in .net

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now