Hello everybody,

I'm looking the command that would create a new value in a registry key.

I tried the following but nothing happens.

I wanted to create the value AUState (in the WindowsUpdate key) initialized to 0x00000002

 Code:
 WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpda

te\AutoUpdate\","AUState","0x00000002","REG_DWORD")



Thanks for the answer.