• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. USING API CALLS TO EXTEND TH... > DISPLAYING PERTINENT FOLDERS FROM WI...

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 _
   "GetTempPathA" (ByVal nBufferLength As Long, _
   ByVal lpBuffer As String) As Long


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint