DevHelp QueueWrite
Appearance
This service adds a character at the end of the specified character queue structure. If the queue is full, an indicator is set.
Syntax
C
BOOL DevHelp_QueueWrite (NPBYTE Queue, UCHAR Char)
Assembler
MOV BX,OFFSET DS:queue ; Points to the queue structure. MOV AL,char ; Character to insert at the end of the queue. MOV DL,DevHlp_QueueWrite CALL [Device_Help]
Parameters
C
- Queue (NPBYTE) - input - Near pointer to the queue structure to be initialized. (The Qsize field must be set up.)
- Char (UCHAR) - input - Character to insert at the end of the queue.
Assembler
MOV BX,OFFSET DS:queue ; Points to the queue structure. MOV AL,char ; Character to insert at the end of the queue.
Return Code
C
Success Indicator: 0 - character is inserted at the end of the queue.
Assembler
'C' Clear if character stored successfully. 'C' Set if queue is full.
Remarks
This function operates on the simple character queue structure initialized by QueueInit.
Example Code
C
#include "dhcalls.h" BOOL DevHelp_QueueWrite (NPBYTE Queue, UCHAR Char)