I want create a process under another user. So I use LogonUser and CreateProcessAsUser. But my problem is, that CreatePtocessAsUser always returns the errorcode 1314, which
The local account that is running your app must have these privileges enabled in the Local Security Policy:
Edit: Please see Patel's answer below. The correct privilege in this case should be: