FileEncryptionStatus function
Retrieves the encryption status of the specified file.
Syntax
BOOL WINAPI FileEncryptionStatus( _In_ LPCTSTR lpFileName, _Out_ LPDWORD lpStatus );
Parameters
- lpFileName [in]
-
The name of the file.
- lpStatus [out]
-
A pointer to a variable that receives the encryption status of the file. This parameter can be one of the following values.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
In Windows 8 and Windows Server 2012, this function is supported by the following technologies.
| Technology | Supported |
|---|---|
|
Server Message Block (SMB) 3.0 protocol |
Yes |
|
SMB 3.0 Transparent Failover (TFO) |
No |
|
SMB 3.0 with Scale-out File Shares (SO) |
No |
|
Cluster Shared Volume File System (CsvFS) |
No |
|
Resilient File System (ReFS) |
No |
SMB 3.0 does not support EFS on shares with continuous availability capability.
Requirements
|
Minimum supported client |
Windows XP Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
FileEncryptionStatusW (Unicode) and FileEncryptionStatusA (ANSI) |
See also