Question: what is the difference between hkey_current_user and hkey_local_machine?
Answer: The main difference between HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE is what they pertain to. HKEY_LOCAL_MACHINE holds information that is relevant to the computer as a whole while HKEY_CURRENT_USER contains information that is specific to the user.