Zorkov Igor wrote:
There are not a lot of code to translate.
I am not used to read/write Pascal, but its pretty easy to understand and i already made it work. Thank you. I do have a question on the the CreateProcessAsSystemW_XP function: Why do i have to impersonate the current running thread into the system account and then call CreateProcessAsUserW() on windows XP based systems? Isnt just calling CreateProcessAsUserW() with the token sufficient enough here? Why impersonate the thread first and then call the function and finally revert for sure?