Udostępnij za pośrednictwem


AtlSetPerUserRegistration

Sets whether the application redirects registry access to the HKEY_CURRENT_USER (HKCU) node.

ATLINLINE ATLAPI AtlSetPerUserRegistration(
   bool bEnable
);

Parameters

  • [in] bEnable
    TRUE indicates that the registry information is directed to the HKCU node; FALSE indicates that the application writes registry information to the default node. The default node is HKEY_CLASSES_ROOT (HKCR).

Return Value

S_OK if the method is successful, otherwise the HRESULT error code if an error occurs.

Remarks

Registry redirection is not enabled by default. If you enable this option, registry access is redirected to HKEY_CURRENT_USER\Software\Classes.

The redirection is not global. Only the MFC and ATL frameworks are affected by this registry redirection.

Requirements

Header: atlbase.h

See Also

Reference

AtlGetPerUserRegistration

Other Resources

Registry and TypeLib Global Functions