A little advice, if you don't know what an API is, don't start to use it.
Try first do the things with managed code (standard methods)
If you know that very well you soon enough see why you should use API's.
That is mostly in the situations, where you want to do something very
special.
With Api's you give direct comands to the OS.
While the managed code does that for you, because it is the translator from
your problem in something the OS has to do.
I think your question is too general. Maybe you want to read the
documentation for the 'Declare' statement (and the "See Also" links on
bottom of the page too).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.