I have to write some information in the machines registry under HKEY_LOCALMAchine
key .which api should i use.

I tried using the savsetting function , but it stores the value in HKEY_USERS/../VB AND VBA SETTINGS