I'm using CreateProcessAsUser to spawn a new process as a different user. I'm logging on successfully using LogonUser, and I have the 3 necessary privileges (SeAssignPrimaryTokenPrivilege, SeIncreaseQuotaPrivilege, and SeTcbPrivilege). I'm trying to use CreateEnvironmentBlock and sending that to CreateProcessAsUser. The process is started, but there is no environment. For instance, the PATH variable is empty. What am I missing to get the process to spawn with the user's environment variables?