Example #1
0
        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);
        }
Example #2
0
        public void TestEnumProcesses()
        {
            var processes = NativeProcess.EnumProcesses();

            foreach (var pi in processes)
            {
                Console.WriteLine($"{pi.Name} ({pi.Id}) Threads: {pi.Threads} Parent: {pi.ParentId}");
            }
        }
Example #3
0
        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);
            }
        }