FileProtectionStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Note
Starting in July 2022, Microsoft is deprecating Windows Information Protection (WIP) and the APIs that support WIP. Microsoft will continue to support WIP on supported versions of Windows. New versions of Windows won't include new capabilities for WIP, and it won't be supported in future versions of Windows. For more information, see Announcing sunset of Windows Information Protection.
For your data protection needs, Microsoft recommends that you use Microsoft Purview Information Protection and Microsoft Purview Data Loss Prevention. Purview simplifies the configuration set-up and provides an advanced set of capabilities.
Describes the enterprise protection state of a file or folder.
public enum class FileProtectionStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Security.EnterpriseData.EnterpriseDataContract, 65536)]
enum class FileProtectionStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Security.EnterpriseData.EnterpriseDataContract), 65536)]
public enum FileProtectionStatus
var value = Windows.Security.EnterpriseData.FileProtectionStatus.undetermined
Public Enum FileProtectionStatus
- Inheritance
-
FileProtectionStatus
- Attributes
Windows requirements
Device family |
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
Windows Mobile Extension SDK (introduced in 10.0.10240.0) |
API contract |
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced in v1.0)
|
Fields
Name | Value | Description |
---|---|---|
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. |
Unknown | 0 | 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. |
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1511 | 10586 | AccessSuspended |
1511 | 10586 | LicenseExpired |
1607 | 14393 | FileInUse |