AtlGetPerUserRegistration

 

Use this function to determine whether the application redirects registry access to the HKEY_CURRENT_USER (HKCU) node.

Important

This function cannot be used in applications that execute in the Windows Runtime.

Syntax

ATLINLINE ATLAPI AtlGetPerUserRegistration(
   bool* pEnabled
);

Parameters

  • [out] pEnabled
    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

Registry and TypeLib Global Functions
AtlSetPerUserRegistration