SECRegistry::KeyToStr

BOOLSECRegistry::KeyToStr(HKEYhKey, CString&strKey)

Converts an HKEY constant to its string equivalent.

Defined in: SECREG.CPP

Return Value

Nonzero if successful, otherwise 0.

Parameters

hKey

HKEY handle to convert.

strKey

String to receive conversion

Comments

This method maps the standard HKEY values to strings

The keys this method recognizes (and their mapped strings) include:
HKEY_CLASSES_ROOT"HKEY_CLASSES_ROOT"
HKEY_CURRENT_USER"HKEY_CURRENT_USER"
HKEY_LOCAL_MACHINE"HKEY_LOCAL_MACHINE"
HKEY_USERS"HKEY_USERS"
HKEY_CURRENT_CONFIG"HKEY_CURRENT_CONFIG"
HKEY_DYN_DATA"HKEY_DYN_DATA"

If a the key cannot be matched, the string reference is not altered.

See Also

SECRegistry  StrToKey