예제 #1
0
        public static void Register()
        {
            IOleMessageFilter newFilter = new ComMessageFilter();
            IOleMessageFilter oldFilter = null;

            CoRegisterMessageFilter(newFilter, out oldFilter);
        }
예제 #2
0
        protected dynamic GetDebugger()
        {
            if (_DTEInstance == null)
            {
                return(null);
            }

            ComMessageFilter.Register();
            try
            {
                return(_DTEInstance.Debugger);
            }
            finally
            {
                ComMessageFilter.Revoke();
            }
        }
예제 #3
0
 public static void Register()
 {
     IOleMessageFilter newFilter = new ComMessageFilter();
     IOleMessageFilter oldFilter = null;
     CoRegisterMessageFilter(newFilter, out oldFilter);
 }