DISPLAYING PERTINENT FOLDERS FROM WITHIN YOUR APPLICATION

The following are some useful function calls to know when you're in the middle of your application, and the other API calls displayed here are pretty straightforward. Three routines—GetWindowsDirectoryA, GetSystemDirectoryA, and GetTempPathA—are called. You can pretty well see which routine performs what function just by looking at the declarations:

 Declare Function wu_GetWindowsDirectory Lib "kernel32" Alias _ "GetWindowsDirectoryA" (ByVal lpBuffer As String, _ ByVal nSize As Long) As Long Declare Function wu_GetSystemDirectory Lib "kernel32" Alias _ "GetSystemDirectoryA" (ByVal lpBuffer As String, _ ByVal nSize As Long) As Long Declare Function wu_GetTempPath Lib "kernel32" Alias _ ...

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.