Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Creates and returns the absolute path of a registry key.

CString GetRegSectionPath(
   LPCTSTR szSectionAdd = _T("")

[in] szSectionAdd

A string that contains the relative path of a registry key.

A CString that contains the absolute path of a registry key.

This method defines the registry key's absolute path by appending the relative path in szSectionAdd to the default registry location for your application. To get the default registry key, use the method CWinAppEx::GetRegistryBase.

Header: afxwinappex.h

© 2015 Microsoft