How can i detect the the Program Files Folder
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
HI, 1 - How can i detect the that on which path Program Files Folder is ??? 2- and how can i find path of specific folder thanx Regards.
About your first question. You can read the ProgramFilesDir value at:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion
in Registry. Then you will obtain the current path of the Program Files Folder in the system. You can use RegOpenKey and RegQueryValueEx Windows API functions to read the path from the Registry.