Solved

OpenProcess in .net

Posted on 2004-07-30
5
645 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
[X]
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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

710 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