The KeyExist method allows you to check whether the specified key is present in the Registry.
| BOOL KeyExist( | ||
| BSTR Name | // The name of the key to look for | |
| ); | ||
Parameters
Name [in] This is the full name of the variable to check. For instance: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\SW
Return values
The KeyExist method returns TRUE if the specified key is found in the Registry and FALSE otherwise.
See also
ValueExist method