public sealed record ProcessSnapshot : IEquatable<ProcessSnapshot> A process observed in a point-in-time Toolhelp snapshot.
Parameters
ProcessIdThe process identifier, which Windows may later reuse.
ParentProcessIdThe recorded parent identifier; its process may already have exited.
ExecutableNameThe executable filename reported by Toolhelp, not a full path.
Constructors
ProcessSnapshot
public ProcessSnapshot(uint ProcessId, uint ParentProcessId, string ExecutableName) A process observed in a point-in-time Toolhelp snapshot.
Parameters
ProcessIdThe process identifier, which Windows may later reuse.
ParentProcessIdThe recorded parent identifier; its process may already have exited.
ExecutableNameThe executable filename reported by Toolhelp, not a full path.
Properties
ExecutableName
public string ExecutableName { get; init; } The executable filename reported by Toolhelp, not a full path.
ParentProcessId
public uint ParentProcessId { get; init; } The recorded parent identifier; its process may already have exited.
ProcessId
public uint ProcessId { get; init; } The process identifier, which Windows may later reuse.