2.2.5.3.5 Registry::HasKey

Description

Has the specified registry key or not.

Syntax

BOOL HasKey( LPCSTR lpSubKey )

Parameters

lpSubKey
[input] Pointer to a null-terminated string containing the name of the subkey to test.

Return

TRUE or FALSE.

Examples

EX1

BOOL Registry_HasKey_ex1()
{
    Registry myRegAccess(HKEY_CLASSES_ROOT);
    if( myRegAccess.HasKey("abc") )
        return TRUE;
}

Remark

See Also

Header to Include

origin.h