Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LogonUser and CreateProcessAsUser problem

Status
Not open for further replies.

Killroyson

Programmer
Aug 26, 2007
2
AU
Hi all,

I am working on creating an XP embedded solution for a kiosk style project. During the first boot agent (FBA) I am running some setup and security scripts. One part of these scripts executes a function which calls LogonUser and then CreateProcessAsUser with the resulting token. These calls are being executed with no errors and I close the token handle and process and thread handles. The problem comes after this when I try to start a service or change registry keys as the Administrator (the account used normally for my FBA) and I keep getting error 5 (Access is denied).

Any input most appreciated.



 
Hi again, I found the problem. I was using ImpersonateLoggedOnUser to test the token and failed to call RevertToSelf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top