Can someone give me an example of how the SendInput Api works?

I'm not used to work with API's.

I want to activate the Numlock automatically set enabled on startup of Access-DB.

Thanks