Charles Dye
Super Moderator
- May
- 5,081
- 133
Staff member
I want to attach a console window programatically. TakeCommandIPC() supports this, but I suspect the docs for the START command need revision or clarification. According to the help file, pszArguments should be the PID, in hex, of the process to attach. Well....
A hex PID with a leading 0X does nothing; the function returns 2 (not found?)
A decimal PID also does nothing and returns 2.
A hex PID with no leading 0X crashes Take Command, leaving TCC stranded....
A hex PID with no leading 0X, followed by a space and another number (e.g. just a zero) works! ...but still returns 2. Still not right, but close enough for Take Command to fudge it?
So: I think there is a second numeric argument, not explained in the docs, which is required but not critical. But what? And in what format?
A hex PID with a leading 0X does nothing; the function returns 2 (not found?)
A decimal PID also does nothing and returns 2.
A hex PID with no leading 0X crashes Take Command, leaving TCC stranded....
A hex PID with no leading 0X, followed by a space and another number (e.g. just a zero) works! ...but still returns 2. Still not right, but close enough for Take Command to fudge it?
So: I think there is a second numeric argument, not explained in the docs, which is required but not critical. But what? And in what format?