I nee some code to find the Windows/WinNT directory.
I tried this one but it's gives me an error :(
function GetWindowsDirectory(lpBuffer: PChar; uSize: UINT): UINT; stdcall;
Buffer : Array[0..150] OF Char;
GetWindowsDirectory ( Buffer,sizeOf(Buffer));
Result := StrPas(Buffer );
Anyone else out ther with the good code?