CreateProcessWithLogonW is a Windows API function that allows the creation of a user-mode process as an arbitrary user.