Hem / Tips & tricks
Dim strBuffer As StringDim lngReturn As LongDim strWindowsDirectory As StringstrBuffer = Space$(MAX_PATH)lngReturn = GetWindowsDirectory(strBuffer, MAX_PATH)strWindowsDirectory = Left$(strBuffer, Len(strBuffer) - 1)