E
Empi
Hi,
Several questions regarding serial I/O.
1) I got confused regarding the DCB flags.
On msdn, these flags (fBinary; fParity; fOutxCtsFlowfErrorChar etc) are
defined as 32 bitsvariable,
while on MSpress book MS Compact Framework, I find a DCB on which each
flag gets an int (DWORD).
What does coredll.dll really expect?
Did the compramise in order to accept both structures (using the dcb
length) in order to help c# ? (no trivial support for defining bit flags).
2) How can I pass null to ReadFile when OVERLAPPED is not really used?
I've found several ReadFile samples that simply define an OVERLAPPED,
passing a ref to it without setting anything in it.
Can't I kust pass a null? (trying to do so gave a compiler error
regarding this parameter (fifth)).
Thanks.
Several questions regarding serial I/O.
1) I got confused regarding the DCB flags.
On msdn, these flags (fBinary; fParity; fOutxCtsFlowfErrorChar etc) are
defined as 32 bitsvariable,
while on MSpress book MS Compact Framework, I find a DCB on which each
flag gets an int (DWORD).
What does coredll.dll really expect?
Did the compramise in order to accept both structures (using the dcb
length) in order to help c# ? (no trivial support for defining bit flags).
2) How can I pass null to ReadFile when OVERLAPPED is not really used?
I've found several ReadFile samples that simply define an OVERLAPPED,
passing a ref to it without setting anything in it.
Can't I kust pass a null? (trying to do so gave a compiler error
regarding this parameter (fifth)).
Thanks.