public void Refresh() { try { lock (_lock) { IsCurrentlyRefresh = true; if (null != RotItems) { RotItems.Dispose(); } RotItems = RunningObjectTable.GetActiveProxyInformations("", ""); AddItems(); RemoveItems(); } } catch (Exception) { throw; } finally { IsCurrentlyRefresh = false; } }
/// <summary> /// Returns all running Outlook.PlaySoundRuleAction objects from the environment/system /// </summary> /// <returns>an Outlook.PlaySoundRuleAction array</returns> public static NetOffice.OutlookApi.PlaySoundRuleAction[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Outlook","PlaySoundRuleAction"); NetRuntimeSystem.Collections.Generic.List<NetOffice.OutlookApi.PlaySoundRuleAction> resultList = new NetRuntimeSystem.Collections.Generic.List<NetOffice.OutlookApi.PlaySoundRuleAction>(); foreach(object proxy in proxyList) resultList.Add( new NetOffice.OutlookApi.PlaySoundRuleAction(null, proxy) ); return resultList.ToArray(); }
/// <summary> /// Returns all running Outlook.OlkTimeZoneControl objects from the environment/system /// </summary> /// <returns>an Outlook.OlkTimeZoneControl array</returns> public static NetOffice.OutlookApi.OlkTimeZoneControl[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Outlook","OlkTimeZoneControl"); NetRuntimeSystem.Collections.Generic.List<NetOffice.OutlookApi.OlkTimeZoneControl> resultList = new NetRuntimeSystem.Collections.Generic.List<NetOffice.OutlookApi.OlkTimeZoneControl>(); foreach(object proxy in proxyList) resultList.Add( new NetOffice.OutlookApi.OlkTimeZoneControl(null, proxy) ); return resultList.ToArray(); }
/// <summary> /// Returns all running Access.AllModules objects from the environment/system /// </summary> /// <returns>an Access.AllModules array</returns> public static NetOffice.AccessApi.AllModules[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Access","AllModules"); NetRuntimeSystem.Collections.Generic.List<NetOffice.AccessApi.AllModules> resultList = new NetRuntimeSystem.Collections.Generic.List<NetOffice.AccessApi.AllModules>(); foreach(object proxy in proxyList) resultList.Add( new NetOffice.AccessApi.AllModules(null, proxy) ); return resultList.ToArray(); }
/// <summary> /// Returns the count of accessible com proxies /// </summary> /// <param name="type">target proxy type</param> /// <returns>count of accessible proxies</returns> public static int GetAccessibleProxyCount(ProxyType type) { IEnumerable <AccessibleWindowTarget> targets = ConvertToTargets(type); IDisposableEnumeration <ProxyInformation> result = GetAccessibleProxiesFromPath(targets); int count = result.Count; result.Dispose(); return(count); }
/// <summary> /// Returns all running MSForms.UserForm objects from the environment/system /// </summary> /// <returns>an MSForms.UserForm array</returns> public static NetOffice.MSFormsApi.UserForm[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("MSForms", "UserForm"); NetRuntimeSystem.Collections.Generic.List <NetOffice.MSFormsApi.UserForm> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.MSFormsApi.UserForm>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.MSFormsApi.UserForm(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running OWC10.OfflineInfo objects from the environment/system /// </summary> /// <returns>an OWC10.OfflineInfo array</returns> public static NetOffice.OWC10Api.OfflineInfo[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("OWC10", "OfflineInfo"); NetRuntimeSystem.Collections.Generic.List <NetOffice.OWC10Api.OfflineInfo> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.OWC10Api.OfflineInfo>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.OWC10Api.OfflineInfo(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running Access.FormatCondition objects from the environment/system /// </summary> /// <returns>an Access.FormatCondition array</returns> public static NetOffice.AccessApi.FormatCondition[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Access", "FormatCondition"); NetRuntimeSystem.Collections.Generic.List <NetOffice.AccessApi.FormatCondition> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.AccessApi.FormatCondition>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.AccessApi.FormatCondition(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running MSHTML.XDomainRequestFactory objects from the environment/system /// </summary> /// <returns>an MSHTML.XDomainRequestFactory array</returns> public static NetOffice.MSHTMLApi.XDomainRequestFactory[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("MSHTML", "XDomainRequestFactory"); NetRuntimeSystem.Collections.Generic.List <NetOffice.MSHTMLApi.XDomainRequestFactory> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.MSHTMLApi.XDomainRequestFactory>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.MSHTMLApi.XDomainRequestFactory(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running Office.CustomXMLSchemaCollection objects from the environment/system /// </summary> /// <returns>an Office.CustomXMLSchemaCollection array</returns> public static NetOffice.OfficeApi.CustomXMLSchemaCollection[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Office", "CustomXMLSchemaCollection"); NetRuntimeSystem.Collections.Generic.List <NetOffice.OfficeApi.CustomXMLSchemaCollection> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.OfficeApi.CustomXMLSchemaCollection>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.OfficeApi.CustomXMLSchemaCollection(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running ADODB.Record objects from the environment/system /// </summary> /// <returns>an ADODB.Record array</returns> public static NetOffice.ADODBApi.Record[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("ADODB", "Record"); NetRuntimeSystem.Collections.Generic.List <NetOffice.ADODBApi.Record> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.ADODBApi.Record>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.ADODBApi.Record(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running Access._CustomControlInReport objects from the environment/system /// </summary> /// <returns>an Access._CustomControlInReport array</returns> public static NetOffice.AccessApi._CustomControlInReport[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Access", "_CustomControlInReport"); NetRuntimeSystem.Collections.Generic.List <NetOffice.AccessApi._CustomControlInReport> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.AccessApi._CustomControlInReport>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.AccessApi._CustomControlInReport(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running Outlook.SenderInAddressListRuleCondition objects from the environment/system /// </summary> /// <returns>an Outlook.SenderInAddressListRuleCondition array</returns> public static NetOffice.OutlookApi.SenderInAddressListRuleCondition[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Outlook", "SenderInAddressListRuleCondition"); NetRuntimeSystem.Collections.Generic.List <NetOffice.OutlookApi.SenderInAddressListRuleCondition> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.OutlookApi.SenderInAddressListRuleCondition>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.OutlookApi.SenderInAddressListRuleCondition(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running VBIDE.CommandBarEvents objects from the environment/system /// </summary> /// <returns>an VBIDE.CommandBarEvents array</returns> public static NetOffice.VBIDEApi.CommandBarEvents[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("VBIDE", "CommandBarEvents"); NetRuntimeSystem.Collections.Generic.List <NetOffice.VBIDEApi.CommandBarEvents> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.VBIDEApi.CommandBarEvents>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.VBIDEApi.CommandBarEvents(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running Excel.Workbook objects from the environment/system /// </summary> /// <returns>an Excel.Workbook array</returns> public static NetOffice.ExcelApi.Workbook[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Excel", "Workbook"); NetRuntimeSystem.Collections.Generic.List <NetOffice.ExcelApi.Workbook> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.ExcelApi.Workbook>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.ExcelApi.Workbook(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running MSHTML.ThreadDialogProcParam objects from the environment/system /// </summary> /// <returns>an MSHTML.ThreadDialogProcParam array</returns> public static NetOffice.MSHTMLApi.ThreadDialogProcParam[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("MSHTML", "ThreadDialogProcParam"); NetRuntimeSystem.Collections.Generic.List <NetOffice.MSHTMLApi.ThreadDialogProcParam> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.MSHTMLApi.ThreadDialogProcParam>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.MSHTMLApi.ThreadDialogProcParam(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns an accessible com proxy through the IAccessible interface /// </summary> /// <param name="type">target proxy type</param> /// <param name="throwExceptionIfNothingFound">throw an exception if no proxy found</param> /// <returns>com proxy instance or null</returns> public static object GetAccessibleProxy(ProxyType type, bool throwExceptionIfNothingFound) { IEnumerable <AccessibleWindowTarget> targets = ConvertToTargets(type); IDisposableEnumeration <ProxyInformation> result = GetAccessibleProxiesFromPath(targets, 1); if (result.Count == 0 && throwExceptionIfNothingFound) { throw new ArgumentOutOfRangeException("type", "Unable to find accessible proxy"); } return(result); }
/// <summary> /// Returns all running DAO.QueryDef objects from the environment/system /// </summary> /// <returns>an DAO.QueryDef array</returns> public static NetOffice.DAOApi.QueryDef[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("DAO", "QueryDef"); NetRuntimeSystem.Collections.Generic.List <NetOffice.DAOApi.QueryDef> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.DAOApi.QueryDef>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.DAOApi.QueryDef(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running Word.OLEControl objects from the environment/system /// </summary> /// <returns>an Word.OLEControl array</returns> public static NetOffice.WordApi.OLEControl[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Word", "OLEControl"); NetRuntimeSystem.Collections.Generic.List <NetOffice.WordApi.OLEControl> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.WordApi.OLEControl>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.WordApi.OLEControl(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running Outlook.Explorers objects from the environment/system /// </summary> /// <returns>an Outlook.Explorers array</returns> public static NetOffice.OutlookApi.Explorers[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Outlook", "Explorers"); NetRuntimeSystem.Collections.Generic.List <NetOffice.OutlookApi.Explorers> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.OutlookApi.Explorers>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.OutlookApi.Explorers(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running PowerPoint.Slide objects from the environment/system /// </summary> /// <returns>an PowerPoint.Slide array</returns> public static NetOffice.PowerPointApi.Slide[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("PowerPoint", "Slide"); NetRuntimeSystem.Collections.Generic.List <NetOffice.PowerPointApi.Slide> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.PowerPointApi.Slide>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.PowerPointApi.Slide(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running Visio.Font objects from the environment/system /// </summary> /// <returns>an Visio.Font array</returns> public static NetOffice.VisioApi.Font[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("Visio", "Font"); NetRuntimeSystem.Collections.Generic.List <NetOffice.VisioApi.Font> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.VisioApi.Font>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.VisioApi.Font(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running MSHTML.HTMLAttributeCollection objects from the environment/system /// </summary> /// <returns>an MSHTML.HTMLAttributeCollection array</returns> public static NetOffice.MSHTMLApi.HTMLAttributeCollection[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("MSHTML", "HTMLAttributeCollection"); NetRuntimeSystem.Collections.Generic.List <NetOffice.MSHTMLApi.HTMLAttributeCollection> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.MSHTMLApi.HTMLAttributeCollection>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.MSHTMLApi.HTMLAttributeCollection(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all running MSComctlLib.Nodes objects from the environment/system /// </summary> /// <returns>an MSComctlLib.Nodes array</returns> public static NetOffice.MSComctlLibApi.Nodes[] GetActiveInstances() { IDisposableEnumeration proxyList = NetOffice.ProxyService.GetActiveInstances("MSComctlLib", "Nodes"); NetRuntimeSystem.Collections.Generic.List <NetOffice.MSComctlLibApi.Nodes> resultList = new NetRuntimeSystem.Collections.Generic.List <NetOffice.MSComctlLibApi.Nodes>(); foreach (object proxy in proxyList) { resultList.Add(new NetOffice.MSComctlLibApi.Nodes(null, proxy)); } return(resultList.ToArray()); }
/// <summary> /// Returns all accessible com proxies through the IAccessible interface /// </summary> /// <param name="type">target proxy type</param> public static IDisposableEnumeration GetAccessibleProxies(ProxyType type) { IEnumerable <AccessibleWindowTarget> targets = ConvertToTargets(type); IDisposableEnumeration <ProxyInformation> result = GetAccessibleProxiesFromPath(targets); List <object> newResult = new List <object>(); foreach (ProxyInformation item in result) { newResult.Add(item.Proxy); } return(null); }