Property process.thisProcessHandle Overload Returns current process handle. See API GetCurrentProcess. Don't need to close the handle. public static nint thisProcessHandle { get; } Property Value nint