Example #1
0
        public void InstallCustomHandler(OutputHandler currentHandler, out IntPtr PreviousCallbacks)
        {
            PreviousCallbacks = SavePreviousCallbacks();

            IntPtr ThisIDebugOutputCallbacksPtr = Marshal.GetComInterfaceForObject(currentHandler, typeof(IDebugOutputCallbacks2));
            int    InstallationHRESULT          = this.DebugClient.SetOutputCallbacks(ThisIDebugOutputCallbacksPtr);
        }
Example #2
0
        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);
        }
Example #3
0
        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;
        }
Example #4
0
        public void InstallCustomHandler(OutputHandler currentHandler, out IntPtr PreviousCallbacks)
        {
            
            PreviousCallbacks = SavePreviousCallbacks();

            IntPtr ThisIDebugOutputCallbacksPtr = Marshal.GetComInterfaceForObject(currentHandler, typeof(IDebugOutputCallbacks2));
            int InstallationHRESULT = this.DebugClient.SetOutputCallbacks(ThisIDebugOutputCallbacksPtr);
            
        }