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

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

Thanks