public Breakpoint CreateBreakpoint(DEBUG_BREAKPOINT_TYPE type, uint id = uint.MaxValue) { return(RunAsync(() => { IDebugBreakpoint bp; Control.AddBreakpoint(type, id, out bp).ThrowIfFailed(); return new Breakpoint(this, (IDebugBreakpoint3)bp); }).Result); }
public int CreateProcess(ulong ImageFileHandle, ulong Handle, ulong BaseOffset, uint ModuleSize, string ModuleName, string ImageName, uint CheckSum, uint TimeDateStamp, ulong InitialThreadHandle, ulong ThreadDataOffset, ulong StartOffset) { return(1); IDebugBreakpoint bp; _control.AddBreakpoint(DEBUG_BREAKPOINT_TYPE.CODE, uint.MaxValue, out bp); bp.SetOffset(StartOffset); bp.SetFlags(DEBUG_BREAKPOINT_FLAG.ENABLED); //bp.SetCommandWide(".echo Stopping on process attach"); return((int)DEBUG_STATUS.GO);// NO_CHANGE; }