public void AttachToKernel(string options) { RunAsync(() => { int hr = Client.AttachKernelWide(DEBUG_ATTACH.KERNEL_CONNECTION, options); if (FAILED(hr)) { OnError(new ErrorEventArgs(DebuggerError.KernelAttachFailed, hr, options)); return; } WaitForEvent(); }); }