Solved

EFS Automation in VB6

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

863 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

22 Experts available now in Live!

Get 1:1 Help Now