EFS Automation in VB6

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.

Who is Participating?
ee_ai_constructConnect With a Mentor Commented:
PAQ / Refund
ee ai construct, community support moderator
This is a previous question:

It's C++ but it should give you some direction...also it has a link you might not have seen yet
tw_chaseAuthor Commented:
I have already checked all that out but the problem is I don't know C++ and I have a feeling I will have to modify it.  I really need a VB6 example of call the AddUsersToEncryptedFile API.  I know it should only be a few lines but I can't get it to work.
tw_chaseAuthor Commented:
I had to have somebody build a Wrapper for this particular API.  Everything is automated now.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.