This function opens a registry key.
OpenKey (KeyName As String) As Long
Parameters
KeyName
[in] Name of the complete key to open. Can be a string like: "Software\Microsoft\Windows".
If an empty key "" is used, root key is opened.
Return Value
0: success
1: failed, key not found