mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-06-29 16:19:55 +00:00

According to MSDN documentation for CreateEnvironmentBlock, "[i]f the environment block is passed to CreateProcessAsUser, you must also specify the CREATE_UNICODE_ENVIRONMENT flag." Also pass DETACHED_PROCESS because the host is a GUI application and doesn't use the console.