Solved

EFS Automation in VB6

Posted on 2006-07-10
7
672 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…

733 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