Eric Pouech : kernel32: Use fd availability for testing whether a console handle refers to a bare console .