I want to launch a process under a local user in Window7 and Windows10 system. The new process need new environment variable .
So I have created a local user . Create Environment Block using the token obtained from LogonUser API. Then added new environment variable to the Environment Block . When CreateProcessWithLogonW is called with this updated Environment Block application throws
error code 1783 ( stub received bad data) .
regards
Somara