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

FileProtectionStatus enumeration

· 52CE 我爱测

Describes the enterprise protection state of a file or folder.

Describes the enterprise protection state of a file or folder.

Syntax

typedef enum {
    Undetermined = 0,
    Unprotected,
    Protected,
    ProtectedByOtherUser,
    ProtectedToOtherEnterprise,
    NotProtectable,
    ProtectedToOtherIdentity,
    LicenseExpired,
    AccessSuspended,
    FileInUse
} FileProtectionStatus;

Constants

Unknown:0

The item is either encrypting or decrypting and the enterprise protection status cannot be determined. Check again later.

Undetermined:0

Note: Undetermined may be unavailable for releases after Windows 10. Instead, use Unknown.

The item is either encrypting or decrypting and the enterprise protection status cannot be determined. Check again later.

Unprotected:1

The item is not protected using enterprise protection.

Revoked:2

The item has been revoked using enterprise protection.

Protected:3

The item is protected using enterprise protection and you're app can open this file because it is on the allowed list of the policy.

ProtectedByOtherUser:4

Note: ProtectedByOtherUser may be unavailable for releases after Windows 10. Instead, use ProtectedToOtherIdentity.

Another user has protected the item using enterprise protection.

ProtectedToOtherEnterprise:5

Note: ProtectedToOtherEnterprise may be unavailable for releases after Windows 10. Instead, use ProtectedToOtherIdentity.

The item is protected for another enterprise id using enterprise protection.

NotProtectable:6

The item is encrypted or is a system file and cannot be protected using enterprise protection.

ProtectedToOtherIdentity:7

The item is protected for another enterprise identity using enterprise protection.

LicenseExpired:8

The item's RMS license has expired.

AccessSuspended:9

The keys to access the protected item have been dropped while the device is locked.

FileInUse:10

The item is being used by another process. You can apply enterprise protection to it only after it becomes exclusively available.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows 10
Header None

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 01/22/2022
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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