Windows Update APIから.Netを介してLastInstallationSuccessDateとLastSearchSuccessDateを取得しようとしています。 IAutomaticUpdates2.Resultsを取得できますが、その中に含まれる2つのプロパティはnullです。なぜ彼らはドキュメントの状態のような日付ではないのですか?WUApiLib.AutomaticUpdatesはなぜですか.WUApiLib.AutomaticUpdates null?
class Program
{
static void Main(string[] args)
{
WUApiLib.IAutomaticUpdates2 auc = new WUApiLib.AutomaticUpdates();
Console.WriteLine(auc.Results.LastInstallationSuccessDate);
Console.WriteLine(auc.Results.LastSearchSuccessDate);
}
}
Windows 7 x64では動作しますが、Windows XP x86では動作しません。 –
私は、WUApiLibサポートがVista以上に限定されていると推測しています。 –
この非常にウェブサイトで簡単に検索すると、私はこのディスカッションを発見することができました:http://stackoverflow.com/questions/5690615/c-sharp-windows-update-api-wuapilib –