1. Re: DCBII PROBLEM SOLVED
- Posted by Bernie Ryan <LockCityData at CS.COM> Mar 14, 2000
- 416 views
On Tue, 14 Mar 2000 15:08:25 -0500, Bernie Ryan <LockCityData at CS.COM> wrote: >On Tue, 14 Mar 2000 17:58:02 +0100, Kondor Attila <konel at DPG.HU> wrote: > Attila: -- This is what the structure should look like global constant DCBlength = allot(DWord), -- offset: 0 BaudRate = allot(DWord), -- offset: 4 COMBINEDBITS = allot(DWord), -- offset: 8 ------------------------ -- These are bits and are all combined into the above DWord -- fBinary 1 BIT -- fParity 1 BIT -- fOutxCtsFlow 1 BIT -- fOutxDsrFlow 1 BIT -- fDtrControl 2 BITS -- fDsrSensitivity 1 BIT -- fTXContinueOnXoff 1 BIT -- fOutX 1 BIT -- fInX 1 BIT -- fErrorChar 1 BIT -- fNull 1 BIT -- fRtsControl 2 BIT -- fAbortOnError 1 BIT -- fDummy 17 BITS -- -- which totals up to 32 bits ( a DWord ) ------------------------ wReserved = allot(Word), -- offset: 12 XonLim = allot(Word), -- offset: 14 XoffLim = allot(Word), -- offset: 16 ByteSize = allot(Byte), -- offset: 18 Parity = allot(Byte), -- offset: 19 StopBits = allot(Byte), -- offset: 20 XonChar = allot(Byte), -- offset: 21 XoffChar = allot(Byte), -- offset: 22 ErrorChar = allot(Byte), -- offset: 23 EofChar = allot(Byte), -- offset: 24 EvtChar = allot(Byte), -- offset: 25 wReserved1 = allot(Word) -- offset: 26 SIZE_OF_DCB=allotted_size() -- The size will be #1C or 28 bytes integer lpDCB lpDCB=allocate_struct(SIZE_OF_DCB) Bernie