I am converting old VB6 code and am having an issue with these constants:
VB6 code:
Private Const GENERIC_WRITE = &H40000000
Private Const GENERIC_READ = &H80000000
C# code:
private const int GENERIC_WRITE = 0x40000000;
private const uint GENERIC_READ = 0x80000000;
Why does the second line have to be uint
?
If I do it as int, it gives me an error?