QueryUsersOnEncryptedFile function
Applies to: desktop apps only
Retrieves a list of users for the specified file.
Syntax
DWORD WINAPI QueryUsersOnEncryptedFile( __in LPCWSTR lpFileName, __out PENCRYPTION_CERTIFICATE_HASH_LIST *pUsers );
Parameters
- lpFileName [in]
-
The name of the file.
- pUsers [out]
-
A pointer to a ENCRYPTION_CERTIFICATE_HASH_LIST structure that receives the list of users.
Return value
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is a system error code. For a complete list of error codes, see System Error Codes or the header file WinError.h.
Remarks
When the list of users is no longer needed, call the FreeEncryptionCertificateHashList function to free the list.
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- ENCRYPTION_CERTIFICATE_HASH_LIST
- File Encryption
- File Management Functions
- FreeEncryptionCertificateHashList
Send comments about this topic to Microsoft
Build date: 4/17/2012