i would like to know the function which returns the drive where the windows has been installed.
for example
if we run a program with following code in windows which is installed in “C:\”
temp_char = getWindowsInstalledDrive();
should return “C:\”.
please point me to that function if you know. it should be a C/C++ function.
Thanks.
You can use GetSystemDirectory(): http://msdn.microsoft.com/en-us/library/ms724373%28VS.85%29.aspx and then take the first 3 letters.