Showing results for June 2009 - Page 5 of 5 - The Old New Thing

Jun 1, 2009
0
0

Why does the CreateProcess function modify its input command line?

Raymond Chen
Raymond Chen

One of the nasty gotchas of the function is that the parameter must be a mutable pointer. If you pass a pointer to memory that cannot be written to (for example, a pointer to a page that is marked ), then you might crash. Commenter Ritchie wonders why this parameter is so weird. Basically, somebody back in the 1980's wanted to avoid allocatin...

History