I am programming in C++ MFC and want to get the C:\windows and c:\program files paths programmatically.
Sometimes user may setup windows in other folder such as c:\windows0.
Is there any API to get absolute path of the windows and program files path?