public int GetProcess(AD_PROCESS_ID ad7ProcessId, out IDebugProcess2 ad7Processs) { // This method is called if a request is made to attach to a process using LaunchDebugTargets. It is // not used by the attach to process dialog. if (ad7ProcessId.ProcessIdType != (uint)enum_AD_PROCESS_ID.AD_PROCESS_ID_SYSTEM) { throw new NotImplementedException(); } uint processId = ad7ProcessId.dwProcessId; AD7Process[] processes = EnumProcessesInternal(); AD7Process process = processes.FirstOrDefault((x) => x.Id == processId); if (process == null) { ad7Processs = null; return(HR.E_PROCESS_DESTROYED); } ad7Processs = process; return(HR.S_OK); }
internal AD7Program(AD7Process process, Guid engineId) { _process = process; _engineId = engineId; }
internal AD7Program(AD7Process process, Guid engineId) { _process = process; _engineId = engineId; }