The username to run the program as.
The domain of the user account.
The password of the user account.
The logon flag to control the behavior of the logon.
The name of the program to run.
Optional working directory for the program.
Optional flag to control how the program's window is shown.
The PID of the started process if successful, or 0 if failed.
Runs a program under a different user account.