ERFORDERLICHE
OBJEKTE
-- keine --
FORM-CODE
Private Declare Function GetWindowsDirectory Lib "KERNEL32" _
Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, _
ByVal nSize As Long) As Long
Private Function WinDir() As String
Dim sDirBuf As String * 255
StrLen = GetWindowsDirectory(sDirBuf, 255)
WinDir = Left$(sDirBuf, StrLen)
End Function
Private Sub Command1_Click()
MsgBox "Das Windows-Verzeichnis lautet " & WinDir(), _
vbInformation
End Sub
|