It Seemed Like a Good Idea at the Time…
Windows has something in the registry called Image File Execution Options. The idea is to be able to have the process launcher replace one executable with another—like a debugger—, control some run-time parameters, and generally do things to the executable via registry options.
Now, let that sink in for a little bit…
Good job, Microsoft.