Click here to Skip to main content
15,888,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need help to figure out how to make use of the shellexecute function along with impersonation without starting a new process. Shellexecute seems to fire a new process and I cannot reach across the gulf, but I need to use shellExecute because it includes the file associations in its execution. Does anyone have a solution for me with perhaps some other APIs.

TIA,


Dennis
Posted

1 solution

Kinda hackish but you could use CreateProcessAsUser to spawn a stub exe that then uses ShellExecute/ShellExecuteEx.
 
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