Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
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
-
HKEY_CLASSES_ROOT
- pInfo
-
[in/out] Pointer to a CE_REGISTRY_INFOstructure 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 FormatMessagemight fail.
Remarks
The
cbSizemember of the
CE_REGISTRY_INFOstructure pointed to by
pInfomust be set to
sizeof (CE_REGISTRY_INFO)
by the calling function.
If CE_REGISTRY_INFOis passed in with pszFullKeyNameset 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 |
Windows Mobile | Windows Mobile Version 5.0 and later |