2012-01-16 3 views
0

Comment la version BITS (Background Intelligent Transfer Service) peut-elle être récupérée à l'aide de C# .NET 4.0.Récupération de la version BITS en C#

+1

Vous ne devez pas avoir fait beaucoup de recherche avant de demander; premier hit Google: [Déterminer la version de BITS sur un ordinateur] (http://msdn.microsoft.com/en-us/library/windows/desktop/aa362837 (v = vs.85) .aspx). –

Répondre

0

J'ai fondamentalement récupéré la version dll de QMgr.dll dans System32, puisque c'est la DLL pour BITS.

const string bitsDll = "QMgr.dll"; 

var bitsDllInfo = FileVersionInfo.GetVersionInfo(Path 
    .Combine(System.Environment.SystemDirectory, bitsDll)); 

updateDeliveryStatusRequest.BitsVersion = bitsDllInfo.FileVersion; 
Questions connexes