大网数据广告活动
Windows 系统接口

FveEnableRawAccessW function

· 52CE 我爱测

Enables or disables reading and writing of disk sectors.

Enables or disables reading and writing of disk sectors.

Syntax

HRESULT FveEnableRawAccessW(
  _In_ PCWSTR VolumeName,
  _In_ BOOL   Enabled
);

Parameters

VolumeName [in]

A unique identifier for the disk volume.

Enabled [in]

If TRUE, allows access to the raw volume. If FALSE, no access is allowed to the raw volume. If raw access has already been enabled but this value is FALSE, the volume is remounted and revalidated.

Return value

This function returns one of the following codes or another error code if it fails.

Return code/value Description
S_OK 0 (0x0) The function was successful.
S_FALSE 1 (0x1) Enabled is FALSE and the volume was not already in raw access mode.
E_ACCESSDENIED 2147942405 (0x80070005) The volume cannot be locked.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
DLL Fveapi.dll

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。