Foreword
This is the second article in the API Programming series. In the first article we made a quick survey of what API programming means to a Visual Basic Programmer. We also discussed the various pros and cons of using API Programming.
In this article we'll get our hands dirty! Briefly, we'll see how to access the Win32 API from the Visual Basic environment. We'll start with the basics of declaring and using an API function. From there we'll move on to discussing parameter passing, passing by value, passing by reference, aliasing etc. In the course of this we develop a small utility that displays the computer name in a message box.
Funky, isn't it? Let's get cracking!