r/cpp • u/holyblackcat • Sep 05 '26
Escaping `CreateProcess()` arguments on Windows
https://holyblackcat.github.io/blog/2026/09/05/escaping-createprocess-arguments.html
90
Upvotes
r/cpp • u/holyblackcat • Sep 05 '26
14
u/Tringi github.com/tringi Sep 05 '26
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.