LOOKING AT SOME EXAMPLES OF API CALLS

It's time now for some real examples. The rest of this chapter will look at some actual examples of API calls being used. Before jumping into the individual examples, however, look again at the API declarations used for all of them, merely for your convenience and to refresh them in your mind (see Listing 15.2). These can be found in the module modWindowsAPIRoutines, in Chap15.mdb.

Listing 15.2. Chap15.mdb: Declaring API Calls
 Option Compare Database Option Explicit '-- API Call for finding the associated file Declare Function wu_FindExecutable Lib "shell32.dll" Alias _ "FindExecutableA" (ByVal lpFile As String, _ ByVal lpDirectory As String, ByVal lpResult As String) As Long '-- API Calls for adding and ...

Get F. Scott Barker's Microsoft® Access 2000 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.