http://bugs.winehq.org/show_bug.cgi?id=24220
--- Comment #2 from stampoon stampoon@gmail.com 2010-08-31 07:13:21 CDT --- (In reply to comment #1)
Your test has an error, GetKeyboardState returns 'BOOL', you need to check if it failed by testing it against 0. I don't have access to a Wine environment right now, but perhaps you should fix your test and retry.
I add "if (GetKeyboardState(keystate) != 0) printf("%s","not fail");", but "not fail" prints to std, aka GetKeyboardState returns TRUE.