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!

CreateProcessWithLogonW to exec a function instead of a process

Status
Not open for further replies.

lupidus

MIS
Jun 1, 2003
30
US
Is there a way to customize CreateProcessWithLogonW
(
but have it do a function call instead?


I'm currently doing something like this and want to cut my utility down to one exe instead of two:


Exe1: CreateProcessWithLogonW(...exe2...); // executes exe2 with elevated privileges

Exe2: Runs a function with elevated privileges (because of CreateProcessWithLogonW)

Unforunately, CreateProcessWithLogonW only takes application name, command line (.exe, .com files etc). I can't find any equivalent for running threads/functions,etc

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top