public void TestOpenProcess() { var explorer = NativeProcess.EnumProcesses().First(pi => pi.Name.ToLower() == "explorer.exe"); var process = NativeProcess.Open(ProcessAccessMask.QueryInformation, explorer.Id); Console.WriteLine(process.StartTime); }
public void TestEnumProcesses() { var processes = NativeProcess.EnumProcesses(); foreach (var pi in processes) { Console.WriteLine($"{pi.Name} ({pi.Id}) Threads: {pi.Threads} Parent: {pi.ParentId}"); } }
public void TestMemoryRegions() { var explorer = NativeProcess.EnumProcesses().First(pi => pi.Name.ToLower() == "explorer.exe"); var memoryMap = new MemoryMap(explorer.Id); foreach (var region in memoryMap) { Console.WriteLine(region); } }