HI

i c lots of examples which r using API and my question is this:
how can i know when do i need to use API and what
API command i need?
a simple example is, i want to pause the program
so i look for the "sleep" API command
but what about the more complex commands ?