Re: impersonate a user to access the encryptd file
From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 07/27/04
- Next message: Jerry Spence: "Re: Where does the hand icon come from?"
- Previous message: WinGuy: "Re: GET webpage pix into image control via ITC (VB6)"
- In reply to: akuma: "Re: impersonate a user to access the encryptd file"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 27 Jul 2004 11:12:03 -0500
On Mon, 26 Jul 2004 19:08:02 -0700, "akuma" <akuma@discussions.microsoft.com> wrote:
¤ > Where is the file located and if it's a local file why do you need impersonation?
¤
¤ The files are located at the local computer. The reason of using impersonation is to reduce the time on swithing between users or it can let my program gain access the efs without need to log on as the other user or "Run as" the other user. Please help me to solve the problem, I have seached several days on the web but still can't get the solution to solve this. I had add the necessary privilege from the Group Polices Editior to my program run. However, it just solve the problem generate from CreateProcessAsUser API, it can't gain the access of the EFS. The Impersonation is the function that I want, but I don't know how to use this to access the EFS. There is other relavant function such as OpenProcessToken or AdjustTokenPrivileges. Are them needed to gain access to EFS? If yes, how to do that, otherwise, what is the require method? Please tell me or give some examples of this, any examples for C/C++ are also welcome.
Have you looked at the following MS KB article:
How To Start a Process as Another User from Visual Basic
http://support.microsoft.com/default.aspx?scid=kb;en-us;285879
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
- Next message: Jerry Spence: "Re: Where does the hand icon come from?"
- Previous message: WinGuy: "Re: GET webpage pix into image control via ITC (VB6)"
- In reply to: akuma: "Re: impersonate a user to access the encryptd file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|