22.2.4 SetState() Implementation
The SetState()
function sets the state on the input device such as Caps Lock,
Num Lock, and Scroll Lock. Updating the state on the device being managed may
perform actions such as changing the state of a user visible indicator, and
also changes the keystroke information returned by ReadKeyStroke()
and
ReadKeyStrokeEx()
for keys that are affected by state changes.