C
Claire
I'm reading through some source code written by microsoft to show examples
of porting serial comms to .net.
Anyone who has written comms will know the following constants well.
Can anyone explain why the programmer chose the various variable types and
why some have been initialized so differently in the declaration.
Thanks
internal const int GENERIC_READ = unchecked((int) 0x80000000);
internal const int GENERIC_WRITE = 0x40000000;
internal static readonly IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1);
internal static readonly IntPtr NULL = IntPtr.Zero;
of porting serial comms to .net.
Anyone who has written comms will know the following constants well.
Can anyone explain why the programmer chose the various variable types and
why some have been initialized so differently in the declaration.
Thanks
internal const int GENERIC_READ = unchecked((int) 0x80000000);
internal const int GENERIC_WRITE = 0x40000000;
internal static readonly IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1);
internal static readonly IntPtr NULL = IntPtr.Zero;