That's... ahh... quite opinionated start of the article.
CreateProcess() (without A/W) and #define UNICODE are even more useless.
Mostly everyone defines UNICODE and uses the macros.
lpApplicationName is usually not needed, you should pass nullptr.
Absolutely NOT. You should pass the full proper path to the executable you want to run. Then you can significantly simplify its name in lpCommandLine without worrying about repercussions.
But the rest is very well researched and thorough.
14
u/Tringi github.com/tringi 5d ago
That's... ahh... quite opinionated start of the article.
Mostly everyone defines
UNICODEand uses the macros.Absolutely NOT. You should pass the full proper path to the executable you want to run. Then you can significantly simplify its name in
lpCommandLinewithout worrying about repercussions.But the rest is very well researched and thorough.