Skip to content

Commit 9a0cc0c

Browse files
committed
Added ToString to NtProcessInformation.
1 parent 57d9149 commit 9a0cc0c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

NtApiDotNet/NtSystemInfoNative.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,11 @@ internal NtProcessInformation(SystemProcessInformation process_info, IEnumerable
936936
OtherTransferCount = process_info.OtherTransferCount.QuadPart;
937937
ImagePath = NtSystemInfo.GetProcessIdImagePath(ProcessId, false).GetResultOrDefault(string.Empty);
938938
}
939+
940+
public override string ToString()
941+
{
942+
return ImageName;
943+
}
939944
}
940945

941946
[StructLayout(LayoutKind.Sequential)]

0 commit comments

Comments
 (0)