public void InstallCustomHandler(OutputHandler currentHandler, out IntPtr PreviousCallbacks) { PreviousCallbacks = SavePreviousCallbacks(); IntPtr ThisIDebugOutputCallbacksPtr = Marshal.GetComInterfaceForObject(currentHandler, typeof(IDebugOutputCallbacks2)); int InstallationHRESULT = this.DebugClient.SetOutputCallbacks(ThisIDebugOutputCallbacksPtr); }
private int InitialiezOutputHandler() { //creating new output hanlder to redirect output. if (OutHandler == null) { OutHandler = new OutputHandler(); } IntPtr ThisIDebugOutputCallbacksPtr = Marshal.GetComInterfaceForObject(OutHandler, typeof(IDebugOutputCallbacks2)); int InstallationHRESULT = this.DebugClient.SetOutputCallbacks(ThisIDebugOutputCallbacksPtr); return(InstallationHRESULT); }
private int InitialiezOutputHandler() { //creating new output hanlder to redirect output. if (OutHandler == null) { OutHandler = new OutputHandler(); } IntPtr ThisIDebugOutputCallbacksPtr = Marshal.GetComInterfaceForObject(OutHandler, typeof(IDebugOutputCallbacks2)); int InstallationHRESULT = this.DebugClient.SetOutputCallbacks(ThisIDebugOutputCallbacksPtr); return InstallationHRESULT; }