RegSetValueEx (advapi32)
Last changed: -64.238.244.146

.
Summary
Sets the data and type of a specified value under a registry key.

C# Signature:

static extern int RegSetValueEx(
    IntPtr hKey,
    [MarshalAs(UnmanagedType.LPStr)] string lpValueName,
    int Reserved,
    int    dwType,
    [MarshalAs(UnmanagedType.LPStr)] string lpData,
    int cbData);

VB Signature: (vb.NET 2005)

Declare Auto Function RegSetValueEx Lib "advapi32.dll" (ByVal hKey As Integer, ByVal lpValueName As String, ByVal Reserved As Integer, ByVal dwType As Integer, ByVal lpData As String, ByVal cbData As Integer) As Integer

Alternative Managed API:

My.Computer.Registry.SetValue(KeyName, valueName, value, valueKind)

with signature:

     keyName As String
    valueName As String
    value As Object
    valueKind as RegistryValueKind

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation