mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-06-30 00:29:57 +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.