I can't send chunks of data bigger than 420
bytes. For example if i try to send 421 bytes
, i can't read it with ReadFile
. If I check the maislot info with GetMailslotInfo( handleRead, 0, &msgSize, 0, 0 );
then msgSize
will always be -1
.
So this will never work for me:
err = WriteFile( handleWrite, wcharArrayToSend, 421, &numBytesWritten, NULL );
Does anyone know a reason for this behavior? Is this a normal behavior?
Per MSDN's documentation on mailslots: