GetProgramFilesDirectory
Gets the path to the "Program Files" directory.
DWORD GetProgramFilesDirectory( LPTSTR pszPathBuffer, DWORD dwSize )
Return value
Returns the string length of the directory path or zero if it is unsuccessful.
Example
TCHAR szBuffer[ MAX_PATH ];
DWORD dwLength = GetProgramFilesDirectory( szBuffer, MAX_PATH );
See also none