Amed » 16.04.2003 (Ср) 20:02
Option Explicit
Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Const MAX_LEN as Integer=255 'максимальная длина пути (255 вполне хватит)
Private Sub Form_Load()
Dim tmp As String * MAX_LEN
GetSystemDirectory tmp, MAX_LEN
MsgBox tmp
'tmp - путь к system32
End Sub