get process ID
Published: 14. October 2011 | Updated: 26. October 2011License: Microsoft Public License (MS-PL)
Categories: Windows » Processes
Tags: C# Windows
Import namespace
using System.Diagnostics;
Code
Process process = Process.GetCurrentProcess(); int processId = process.Id;
| Send us feedback about this snippet » |





