How to get the Windows System directory
Hi all,
My problem goes like this...
I am using windows system call to get the current windows 'System directory' and current windows 'Windows directory'. The code I am using is as below:
..........
System::Call 'kernel32::GetSystemDirectoryA(t .r0, *i r1r1) i .r2'
Strcpy $SysFolderLocation $0
MessageBox MB_OK $SysFolderLocation
System::Call 'kernel32::GetWindowsDirectoryA(t .r0, *i r1r1) i .r2'
Strcpy $SysFolderLocation $0
MessageBox MB_OK $SysFolderLocation
.........
But the problem is when I am running this code in Win2K and WinXP, its working fine, but its not working in case of Win98SE and WinME.
Can anyone give me the solution for this. Or is there any other way to get the current 'windows' and 'system' directory, which will work on all OS.
Regards
Venu