I am trying to setup ReadFile to run asynchronously and according to MSDN, I need to set lpNumberOfBytesRead to null:
ReadFile
lpNumberOfBytesRead
null
You cannot assign null to a value-type. A reference-type can be null, as in, not referring to an object instance, but a value-type always has a value.
IntPtr.Zero is just a constant value that represents a null pointer.