public static void Register() { IOleMessageFilter newFilter = new ComMessageFilter(); IOleMessageFilter oldFilter = null; CoRegisterMessageFilter(newFilter, out oldFilter); }
protected dynamic GetDebugger() { if (_DTEInstance == null) { return(null); } ComMessageFilter.Register(); try { return(_DTEInstance.Debugger); } finally { ComMessageFilter.Revoke(); } }