Declare Function GetPrivateProfileString Lib "Kernel" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Integer, ByVal lpFileName As String) As Integer
Function ExtractBase (ByVal PathName As String) As String
' Return the basename portion of a full pathname
F$ = ExtractFile(PathName)
N% = InStr(F$, ".")
If N% > 0 Then F$ = Left$(F$, N% - 1)
ExtractBase = F$
End Function
Function ExtractFile (ByVal PathName As String) As String
' Return the filename portion of a full pathname
F$ = PathName
Do
N% = InStr(F$, "\")
If N% > 0 Then F$ = Right$(F$, Len(F$) - N%)
Loop While N% > 0
ExtractFile = F$
End Function
Function ExtractPath (ByVal PathName As String) As String
' Return the directory path portion of a full pathname