AfxGetPerUserRegistration
Use this function to determine whether the application redirects registry access to the HKEY_CURRENT_USER (HKCU) node.
BOOL AFXAPI AfxGetPerUserRegistration();
If you enable registry redirection, the framework redirects access from HKCR to HKEY_CURRENT_USER\Software\Classes. Only the MFC and ATL frameworks are affected by the redirection.
To change whether the application redirects registry access, use AfxSetPerUserRegistration.