BCGControlBar Pro for MFC
CString CBCGPWorkspace::GetSectionString ( LPCTSTR  lpszSubSection,
LPCTSTR  lpszEntry,
LPCTSTR  lpszDefault = _T("") 
)

Retrieves the string data for a specified value field of a specified key.

Returns
The value's string data if the function succeeded; otherwise lpszDefault.

Use this function to retrieve the string data from the Windows registry. The string data can be previously written to the Windows registry by the WriteString() or WriteSectionString() function.

Note. Call the SetRegistryBase() function to set a root registry key for all subsequent calls to GetSectionString.

Parameters
lpszSubSectionSpecifies a relative path to the application data key.
lpszEntrySpecifies the value field to read from.
lpszDefaultSpecifies the default value to be returned if the specified value field does not exist.