WIN2000:Connect to keyboard

My application open Keyboard device by call
CreateFile (after calling DefineDosDevice ) and it worked properly
under NT4 but failed under Win2000.
(Sample Win32 application NT4\DDK\General\Dosdev don’t work
under Win2000 too);

char completeDeviceName = “\\.\KBD”;
hDriver = CreateFile (completeDeviceName,
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL
));

Thanks for any help.
Best regards
Mark