Paolo Bonzini wrote:
> > Where have you seen a documentation of the bit patterns of handles?
> > This will not necessarily work in all implementations (Windows, Wine,
> > ReactOS).
> 
> In Wine's source code and in http://www.winehq.org/docs/winedev-guide/x3500:
> 
> Console handles, on the other hand, are not multiple of four, but have 
> the two lower bit set ...

That's not a Microsoft documentation. Thus, it may break in future versions
of Windows. And it may break in ReactOS already today. I'd prefer if you
could use the variant of IsHandleConsole that uses only Microsoft-documented
API.

Bruno


Reply via email to