home *** CD-ROM | disk | FTP | other *** search
- Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long æall one line
-
- Global Const gintMAX_SIZE% = 255
- Global Const gstrNULL$ = ""
-
- Sub AddDirSep(strPathName As String)
- If Right$(RTrim$(strPathName), Len(gstrSEP_DIR)) <> gstrSEP_DIR Then
- strPathName = RTrim$(strPathName) & gstrSEP_DIR
- End If
- End Sub
-
- Function StripTerminator(ByVal strString As String) As String
- Dim intZeroPos As Integer
-
- intZeroPos = InStr(strString, Chr$(0))
- If intZeroPos > 0 Then
- StripTerminator = Left$(strString, intZeroPos - 1)
- Else
- StripTerminator = strString
- End If
- End Function
-
- Function UCase16(ByVal str As String)
- #If Win16 Then
- UCase16 = UCase$(str)
- #Else
- UCase16 = str
- #End If
- End Function
-