Running a process in Windows as the system user

How can I run a process in Windows as the system user, possibly using the WinAPI? Essentially, I want to achieve the same result as executing the following command:
psexec -i -h -d -s ffmpeg -f gdigrab -framerate 5 -i desktop -c:v libx264 -preset veryfast -bf 2 -g 150 out.mp4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.