Currently viewing: GipsySoft » Front Page» Articles

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 );

 

Click to view the source code

See also none