Пример #1
0
 private async Task <COMEnumerateInterfaces> GetSupportedInterfacesInternal(NtToken token)
 {
     try
     {
         return(await COMEnumerateInterfaces.GetInterfacesOOP(this, m_registry, token));
     }
     catch (Win32Exception)
     {
         throw;
     }
 }
Пример #2
0
        public async Task <bool> LoadSupportedInterfacesAsync(bool refresh, NtToken token)
        {
            if (refresh || !InterfacesLoaded)
            {
                COMEnumerateInterfaces enum_int = await GetSupportedInterfacesInternal(token);

                m_interfaces         = new List <COMInterfaceInstance>(enum_int.Interfaces);
                m_factory_interfaces = new List <COMInterfaceInstance>(enum_int.FactoryInterfaces);
                InterfacesLoaded     = true;
                return(true);
            }
            return(false);
        }
Пример #3
0
 private async Task <COMEnumerateInterfaces> GetSupportedInterfacesInternal(NtToken token)
 {
     try
     {
         return(await COMEnumerateInterfaces.GetInterfacesOOP(this, Database, token));
     }
     catch (Win32Exception)
     {
         throw;
     }
     catch (AggregateException agg)
     {
         throw agg.InnerException;
     }
 }