home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Action 1997 October
/
PCA1097A.ISO
/
menue
/
brett
/
97100637.txt
< prev
next >
Wrap
Text File
|
1997-08-28
|
762b
|
33 lines
0
Name das Windows-Verzeichnisses ermitteln
ThE WIZARD
PROGRAMMIEREN
'***********************************************
'Deklaration der API-Funktion
'***********************************************
Declare Function GetWindowsDirectory Lib_
"kernel32" Alias "GetWindowsDirectoryA"_
(ByVal Puffer As String, ByVal PufferLΣnge As_
Long) As Long
'***********************************************
'Name des Windows-Verzeichnisses ermitteln
'***********************************************
Sub WinVerzErmitteln()
Dim FnWert As Long
Dim Puffer As String
Dim WinVerz As String
Puffer = String$(255, 0)
FnWert = GetWindowsDirectory(Puffer, 255)
WinVerz = Left$(Puffer, FnWert)
MsgBox WinVerz
End Sub