Solved

EFS Automation in VB6

Posted on 2006-07-10
7
668 Views
Last Modified: 2008-01-09
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":

http://www.microsoft.com/technet/prodtechnol/winxppro/deploy/cryptfs.mspx

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:

http://windowssdk.msdn.microsoft.com/en-us/library/ms684833.aspx
http://windowssdk.msdn.microsoft.com/en-us/library/ms684827.aspx

I am looking for help on how to implement this API into a VB6 project.  Any help would be appreciated.

Thanks.
0
Comment
Question by:tw_chase
  • 2
  • 2
7 Comments
 
LVL 9

Expert Comment

by:justchat_1
ID: 17075967
This is a previous question:
http://www.experts-exchange.com/Programming/Programming_Platforms/Win_Prog/Q_21071385.html?query=AddUsersToEncryptedFile&clearTAFilter=true

It's C++ but it should give you some direction...also it has a link you might not have seen yet
0
 

Author Comment

by:tw_chase
ID: 17076092
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.
0
 
LVL 9

Expert Comment

by:justchat_1
ID: 17077249
0
 

Author Comment

by:tw_chase
ID: 17291835
I had to have somebody build a Wrapper for this particular API.  Everything is automated now.
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 17356222
PAQ / Refund
ee ai construct, community support moderator
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question