[DllImport("Advapi32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.U4)] public static extern uint RegSetValueEx( IntPtr hKey, string lpValueName, uint Reserved, uint dwType, byte[] lpData, uint cbData );
Microsoft documentation: Link
Last updated 1 year ago