CeRegGetInfo (Windows Embedded CE 6.0)
1/6/2010
This function retrieves the name of an open registry key information about the key.
Syntax
LONG CeRegGetInfo(
__in HKEY hKey,
__inout PCE_REGISTRY_INFO pInfo
Parameters
hKey
[in] Handle to a currently open key or to any of the following predefined values:- HKEY_CLASSES_ROOT
- HKEY_CURRENT_USER
- HKEY_LOCAL_MACHINE
- HKEY_USERS
- pInfo
[in/out] Pointer to a CE_REGISTRY_INFO structure that contains information about the registry key.
Return Value
ERROR_SUCCESS indicates success. A nonzero error code defined in Winerror.h indicates failure. To get a generic description of the error, call FormatMessage with the FORMAT_MESSAGE_FROM_SYSTEM flag set. The message resource is optional, so FormatMessage might fail.
Remarks
The cbSize member of the CE_REGISTRY_INFO structure pointed to by pInfo must be set to sizeof (CE_REGISTRY_INFO)
by the calling function.
If CE_REGISTRY_INFO is passed in with pszFullKeyName set to NULL, the function still returns without error and with all other fields filled.
Requirements
Header | winreg.h |
Library | coredll.lib |
Windows Embedded CE | Windows Embedded CE 6.0 and later |