Link to home
Start Free TrialLog in
Avatar of mdoland
mdoland

asked on

Process Id

How do I get the process id from inside of the process in C#?
Avatar of ViceroyFizzlebottom
ViceroyFizzlebottom
Flag of United States of America image

Process p = Process.GetCurrentProcess();

ASKER CERTIFIED SOLUTION
Avatar of ViceroyFizzlebottom
ViceroyFizzlebottom
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mdoland
mdoland

ASKER

Perfect, thanks!