Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,

I am trying to run an application under a different logon user account. For this I am using the the function CreateProcessWithLogonW(). But I am not able to achieve the requirement. Any help is appreciated. Thanks in advance.
Posted
Updated 18-Jan-11 4:23am
v2

The best I can do is provide a link to the MSDN documentation because your question isn't providing enough information to provide any semblence of a more accurate answer. Instead of posting code, go to this link and READ THE INFORMATION THOROUGHLY. It just indicate might what you're doing wrong.

http://msdn.microsoft.com/en-us/library/ms682431(v=vs.85).aspx[^]
 
Share this answer
 
v2
In addition to John's MSDN links, here's a fairly comprehensive article article on this topic here on Code Project:

GUI-Based RunAsEx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900