示例#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);
 }