UWF _ 筛选器。 RestartSystemUWF_Filter.RestartSystem

安全地重新启动受 UWF 保护的系统,即使覆盖已满也是如此。Safely restarts a system protected by UWF, even if the overlay is full.

语法Syntax

UInt32 RestartSystem();

参数Parameters

无。None.

返回值Return Value

返回一个 HRESULT 值,该值指示 wmi 状态wmi 错误Returns an HRESULT value that indicates WMI status or a WMI error.

备注Remarks

必须使用管理员帐户才能调用此方法。You must use an administrator account to call this method.

如果覆盖已满或接近满,则通常会导致系统长时间关闭或重新启动系统。If the overlay is full, or near full, shutting down or restarting the system normally can cause the system to take an extremely long time to shut down. 当系统在关闭过程中反复尝试写入文件时,会发生这种情况,因为覆盖已满,这种情况会不断发生故障。This occurs when the system repeatedly tries to write files during shutdown, which constantly fail due to the overlay being full. 可以通过避免此方案调用此方法来安全地重新启动系统。You can call this method to safely restart a system by avoiding this scenario.

如果在系统执行大量写入(例如复制一大组文件)时覆盖完全重叠,则调用此方法仍可能会导致长时间关闭。If the overlay becomes full while the system is performing a large amount of writes, such as copying a large group of files, calling this method can still result in a long shutdown time.

要求Requirements

Windows 版本Windows Edition 支持Supported
Windows 10 家庭版Windows 10 Home No
Windows 10 专业版Windows 10 Pro No
Windows 10 企业版Windows 10 Enterprise Yes
Windows 10 教育版Windows 10 Education Yes

UWF _ 筛选器UWF_Filter

统一写入筛选器Unified Write Filter