Get Windows System directory using an API call.
Get Windows System directory using an API call.
API Declarations
Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Rate Get Windows System directory using an API call.
(3(3 Vote))
Dim lngReturn As Long
Dim strWindowsSystemDirectory As String
strBuffer = Space$(MAX_PATH)
lngReturn = GetSystemDirectory(strBuffer, MAX_PATH)
strWindowsSystemDirectory = Left$(strBuffer, Len(strBuffer) - 1)
Get Windows System directory using an API call. Comments
No comments yet — be the first to post one!
Post a Comment