WinApi get Get Program Files directory
Posted: Wed Sep 19, 2012 11:12 am
Hello admn, i want to get the program files folder but i do not know how, i could use the fullpath in a string but i`m coding in a seven machine and when i trie in a xp machine the path isn?t the same and doesn?t work.
So i search from api stuff for a solution but i do not know if it works.
The function that i found was ->SHGetSpecialFolderLocation with a const CSIDL_PROGRAM_FILES.
Does this work? :o
So i search from api stuff for a solution but i do not know if it works.
The function that i found was ->SHGetSpecialFolderLocation with a const CSIDL_PROGRAM_FILES.
Does this work? :o