Microsoft Office 2000/Visual Basic Programmer's Guide |
In order to call functions in the Windows API, or any API for that matter, you'll need documentation describing the available functions, how to declare them in VBA, and how to call them. Two helpful resources are:
The first time you run the API Viewer application, it loads the Win32API.txt file. This text file can be exported to a Microsoft Access database (.mdb file), which speeds the process of loading and scrolling the API data. The Office 2000 Developer CD-ROM includes a custom version of the exported database, OPG_Win32API.mdb, available in the ODETools\V9\Samples\OPG\Samples\CH10 subfolder. This database contains forms and queries you can use to search for API functions containing particular keywords.
For other sources of information about the Windows API and other APIs published by Microsoft, see "Where to Go from Here" at the end of this chapter.