Platform SDK: Files and I/O |
The QueryUsersOnEncryptedFile function retrieves a list of users for the specified file.
DWORD QueryUsersOnEncryptedFile( LPCWSTR lpFileName, // file name PENCRYPTION_CERTIFICATE_HASH_LIST *pUsers // hash list );
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is a Win32 error code. For a complete list of error codes, see Error Codes or the Platform SDK header file WinError.h.
When the list of users is no longer needed, call the FreeEncryptionCertificateHashList function to free the list.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winefs.h; include Windows.h.
Library: Use Advapi32.lib.
File Systems Overview, File System Functions, ENCRYPTION_CERTIFICATE_HASH_LIST, FreeEncryptionCertificateHashList