Property process.thisProcessId Overload Gets current process id. See API GetCurrentProcessId. public static int thisProcessId { get; } Property Value int