Tip - AddUsersToEncryptedFile()
Details - The AddUsersToEncryptedFile function adds user keys to the specified encrypted file.
DWORD WINAPI AddUsersToEncryptedFile(
__in LPCWSTR lpFileName,
__in PENCRYPTION_CERTIFICATE_LIST pUsers
);
lpFileName [in]
The name of the encrypted file.
pUsers [in]
A pointer to an ENCRYPTION_CERTIFICATE_LIST structure that contains the list of new user keys to be added to the file.
The details of ENCRYPTION_CERTIFICATE_LIST structure is as shown below.
typedef struct _ENCRYPTION_CERTIFICATE_LIST {
DWORD nUsers;
PENCRYPTION_CERTIFICATE *pUsers;
} ENCRYPTION_CERTIFICATE_LIST, *PENCRYPTION_CERTIFICATE_LIST;
nUsers
The number of certificates in the list.
pUsers
A pointer to the first ENCRYPTION_CERTIFICATE structure in the list.
Posted By : Praveen V
No comments:
Post a Comment