internal NtProcessInformation(int pid, int session_id) { ProcessId = pid; SessionId = session_id; ImagePath = string.Empty; ImageName = string.Empty; Threads = new NtThreadInformation[0]; }
private static NtResult <NtThread> Open(NtThreadInformation thread_info, ThreadAccessRights desired_access, bool throw_on_error) { var result = Open(thread_info.ThreadId, desired_access, throw_on_error); if (result.IsSuccess) { result.Result._process_name = thread_info.ProcessName; } return(result); }