繁体   English   中英

是否可以在C#中获取Windows操作系统的最新备份详细信息? [关闭]

[英]Is It possible to get the details of windows operating system last backup details in c#? [closed]

我试图创建一个显示Windows OS上次备份时间和日期的WPF应用程序。我尝试使用EventLogger但找不到详细信息。 有什么方法可以获取Windows的上次备份时间和日期?

您在寻找环境类

提供有关当前环境和平台的信息以及进行操作的方法。 这个类不能被继承。

编辑:

您还可以检查以下内容: 使用PInvoke创建系统还原点

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct RestorePointInfo
{
    public int dwEventType;     // The type of event
    public int dwRestorePtType;     // The type of restore point
    public Int64 llSequenceNumber;  // The sequence number of the restore point
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MaxDescW + 1)] 
    public string szDescription;    // The description to be displayed so 
                //the user can easily identify a restore point
} 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM