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 ;) )