r/cpp • u/holyblackcat • Sep 05 '26
Escaping `CreateProcess()` arguments on Windows
https://holyblackcat.github.io/blog/2026/09/05/escaping-createprocess-arguments.html
93
Upvotes
r/cpp • u/holyblackcat • Sep 05 '26
View all comments
Show parent comment
2
u/holyblackcat Sep 05 '26
This is a nice trick to avoid implementing the escaping, but the point of the post was to explain how to do escaping.
Once you have it implemented, passing
lpApplicationNameis strictly more work, IMO. (You have to pass something at the beginning oflpCommandLineanyway, why not pass the application name.)