Jump to content

DevHelp QueueFlush: Difference between revisions

From EDM2
Created page with "This service clears the character queue structure that is specified; that is, it empties the buffer. ==Syntax== ===C=== USHORT APIENTRY DevHelp_QueueFlush (NPBYTE Queue) =..."
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This service clears the character queue structure that is specified; that is, it empties the buffer.  
{{DISPLAYTITLE:DevHelp_QueueFlush}}
This service clears the character queue structure that is specified; that is, it empties the buffer.


==Syntax==
==Syntax==
===C===
;C
  USHORT APIENTRY DevHelp_QueueFlush (NPBYTE Queue)
  USHORT APIENTRY DevHelp_QueueFlush (NPBYTE Queue)


===Assembler===
;Assembler
<PRE>
<PRE>
MOV  BX,OFFSET DS:queue      ; Points to the queue structure to be flushed.
MOV  BX,OFFSET DS:queue      ; Points to the queue structure to be flushed.
Line 13: Line 14:
CALL  [Device_Help]
CALL  [Device_Help]
</PRE>
</PRE>
==Parameters==
==Parameters==
===C===
===C===
; Queue (NPBYTE) : input - Near pointer to the queue structure to be flushed. (The Qsize field must be set up.)
;Queue (NPBYTE) : input - Near pointer to the queue structure to be flushed. (The Qsize field must be set up.)


===Assembler===
===Assembler===
<PRE>
MOV  BX,OFFSET DS:queue   ; Points to the queue structure to be flushed.
MOV  BX,OFFSET DS:queue     ; Points to the queue structure to be flushed.
                            ; (The Qsize field must be set up.)
                              ; (The Qsize field must be set up.)
</PRE>
 
 
==Return Code==
==Return Code==
 
None.
===C===
None .
 
===Assembler===
None .


==Remarks==
==Remarks==
This function operates on the simple character queue structure initialized by QueueInit.  
This function operates on the simple character queue structure initialized by QueueInit.


==Example Code==
==Example Code==
===C===
;C
<PRE>
<PRE>
#include  "dhcalls.h"
#include  "dhcalls.h"
Line 42: Line 35:
USHORT APIENTRY DevHelp_QueueFlush (NPBYTE Queue)
USHORT APIENTRY DevHelp_QueueFlush (NPBYTE Queue)
</PRE>
</PRE>
==Related Functions==


[[Category:DevHlps]]
[[Category:DevHlps]]

Latest revision as of 05:33, 11 May 2025

This service clears the character queue structure that is specified; that is, it empties the buffer.

Syntax

C
USHORT APIENTRY DevHelp_QueueFlush (NPBYTE Queue)
Assembler
MOV   BX,OFFSET DS:queue      ; Points to the queue structure to be flushed.
                              ; (The Qsize field must be set up.)
MOV   DL,DevHlp_QueueFlush

CALL  [Device_Help]

Parameters

C

Queue (NPBYTE)
input - Near pointer to the queue structure to be flushed. (The Qsize field must be set up.)

Assembler

MOV   BX,OFFSET DS:queue    ; Points to the queue structure to be flushed.
                            ; (The Qsize field must be set up.)

Return Code

None.

Remarks

This function operates on the simple character queue structure initialized by QueueInit.

Example Code

C
#include  "dhcalls.h"

USHORT APIENTRY DevHelp_QueueFlush (NPBYTE Queue)