private Interop.procfs.ParsedStat GetStat()
{
EnsureState(State.HaveId);
Interop.procfs.ParsedStat stat;
if (!Interop.procfs.TryReadStatFile(_processId, out stat, new ReusableTextReader()))
{
throw new Win32Exception(SR.ProcessInformationUnavailable);
}
return stat;
}