Csharp/C Sharp by API/Microsoft.Win32/RegistryValueKind
RegistryValueKind.DWord
using System;
using Microsoft.Win32;
class MainClass
{
public static void Main(String[] args)
{
Registry.SetValue(
@"HKEY_CURRENT_USER\Software\CompanyName\SoftwareName",
"IntValueName", 101, RegistryValueKind.DWord);
}
}
RegistryValueKind.String
using System;
using Microsoft.Win32;
class MainClass
{
public static void Main(String[] args)
{
Registry.SetValue(
@"HKEY_CURRENT_USER\Software\CompanyName\SoftwareName",
"DateTimeValue", DateTime.Now.ToString(), RegistryValueKind.String);
}
}