The registry DWORD can store values up to 0xFFFFFFFF or 4294967295, yet there
is no way to assign this, and this is the bug.
Using an int or uint works, however it will not accept values higher than
0x7FFFFFFF or 2147483647, which is the maximum positive value of an int.
I believe it is impossible to to successfully assign a registry dword value
> 2147483647 programmaticlly through the Registry.LocalMachine.SetValue
method, and this is the bug, as you *should* be able to do this.
"José Manuel Agüero" wrote:
> Hello Ben,
>
[quoted text clipped - 21 lines]
> | without a problem, but int does not cover the range of values which can be
> | contained in a regisry dword, only a uint can cover that range.
Jos Manuel Agero - 03 Mar 2006 15:28 GMT
I think you shouldn't be able, as long as UInt32 is not CLS compliant (it's only my opinion).
Why don't you use bitconverter to convert it to Int32 and then save it to the registry?
Regards.
| The registry DWORD can store values up to 0xFFFFFFFF or 4294967295, yet there
| is no way to assign this, and this is the bug.
[quoted text clipped - 31 lines]
| > | without a problem, but int does not cover the range of values which can be
| > | contained in a regisry dword, only a uint can cover that range.