get Numlock state

Blitz3D Forums/Blitz3D Userlibs/get Numlock state

Is there any way to get the state of Numlock and Capslock ?
Tried to use API but failed (that's no wonder ;) )

Look up "GetKeyState(keycode)" on the microsoft site.

I know that the Capslock keycode is 20.