2006-10-07 16:00:30 UTC
The Problem (Multi Processor only):
This occurs when there is MORE than one Logical/Physical CPU on the
When a console winevent hook function is active, changing the codepage
of a console window causes the console window to not respond.
I set a hook using SetWinEventHook to get notified on events
EVENT_CONSOLE_CARET to EVENT_CONSOLE_END_APPLICATION
all is well, events are coming.
When I open a CMD window and change the codepage to a different
codepage than the default one, the window stops responding.
From my tests it appears that the problem is somewhere in theSetConsoleOutputCP api somewhere down the road to the kernel.
It's very URGENT for me to know if it's a MS bug, and if someone has
any idea what I can do about it I would be happy to know.
To verify the problem:
1. download Link to the Microsoft Accessibility SDK:
2. In the SDK, there is a sample called AccEvent. compile it, run it.
3. While it's running, open a cmd window and type CHCP 437 or CHCP 1255
4. The window will hang. if not, open another one and try, it will.
Please assist me in finding the problem.
Thanks for your time,