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
(
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