Exemple #1
0
 private async Task <COMEnumerateInterfaces> GetSupportedInterfacesInternal(NtToken token)
 {
     try
     {
         return(await COMEnumerateInterfaces.GetInterfacesOOP(this, m_registry, token));
     }
     catch (Win32Exception)
     {
         throw;
     }
 }
Exemple #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);
        }
Exemple #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;
     }
 }