+1  A: 

SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, &dwSpeed, 0);

VitalyVal
thank you so much.
Lela Dax
+1  A: 

Why don't you call SystemParametersInfo with corresponding flag (SPI_GETKEYBOARDSPEED) instead?

Roman D