Solved

EFS Automation in VB6

Posted on 2006-07-10
7
658 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now