Maximus5 / conemu-inside

An example, how to embed http://conemu.github.io/ into another graphical application
57 stars 42 forks source link

GuiMacro GetInfo Root Returns ExitCode=259 When Process Is Running #9

Closed hypersw closed 8 years ago

hypersw commented 8 years ago

This value can't be used for checks because the real exit code of the process might just match. So I believe this field should either be omitted for a running process altogether, or be set to a value outside of the valid retvals range.

Maximus5 commented 8 years ago

259 is well known value STILL_ACTIVE, returned by GetExitCodeProcess|Thread. Applications should avoid to return it. I consider it's admissible. But of course, you should to check Status to be sure.