The Win32 objects behind a console can be created in several occasions:
When the program is started from wineconsole, a new console object is created and will be used (inherited) by the process launched from wineconsole.
When a program, which isn't attached to a console, calls
AllocConsole
, Wine then launches
wineconsole, and attaches the current program to this
console. In this mode, the USER32 mode is always
selected as Wine cannot tell the current state of the
Unix console.
Please also note, that starting a child process with the
CREATE_NEW_CONSOLE
flag, will end-up
calling AllocConsole
in the child
process, hence creating a wineconsole with the USER32 backend.