I need to automate the adding of users to EFS encrypted files. I have a program I wrote in VB6 that finds and encrypts these files but I want to add users that have permissions to the file. If you don't know what I am talking about the manual process is shown here under "To add users":
I have found a API called AddUsersToEncryptedFile which is supposed to be the way to automate it but I can't find and VB6 examples on how to implement it. Here are a couple of articles on AddUsersToEncryptedFile:
I am looking for help on how to implement this API into a VB6 project. Any help would be appreciated.