P
PromisedOyster
I need to add/update a registry value with a dword that is greater
than System.Int32.MaxValue. The value is 0x80000024 and is used for
setting the BrowserFlags value for software\\classes\\BrowserFlags.
I can go into the registry editor and set it that way, but NOT using
the .NET framework:
Here is my sample code:
RegistryKey rk = Registry.LocalMachine.OpenSubKey("software\\classes\
\BrowserFlags", true);
rk.SetValue(key, System.Int32.MaxValue, RegistryValueKind.DWord); //
works
rk.SetValue(key, 0x80000024, RegistryValueKind.DWord); // gives an
error
Any advice on how to achieve this?
(This value still fits into 32 bits, it is just that it is a uint not
an int).
than System.Int32.MaxValue. The value is 0x80000024 and is used for
setting the BrowserFlags value for software\\classes\\BrowserFlags.
I can go into the registry editor and set it that way, but NOT using
the .NET framework:
Here is my sample code:
RegistryKey rk = Registry.LocalMachine.OpenSubKey("software\\classes\
\BrowserFlags", true);
rk.SetValue(key, System.Int32.MaxValue, RegistryValueKind.DWord); //
works
rk.SetValue(key, 0x80000024, RegistryValueKind.DWord); // gives an
error
Any advice on how to achieve this?
(This value still fits into 32 bits, it is just that it is a uint not
an int).