DevHelp QueueInit: Difference between revisions
Appearance
Created page with "This service initializes the specified character queue structure. ==Syntax== ===C=== USHORT APIENTRY DevHelp_QueueInit (NPBYTE Queue) ===Assembler=== <PRE> MOV BX,OFFSET..." |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
This service initializes the specified character queue structure. | {{DISPLAYTITLE:DevHelp_QueueInit}} | ||
This service initializes the specified character queue structure. | |||
==Syntax== | ==Syntax== | ||
;C | |||
USHORT APIENTRY DevHelp_QueueInit (NPBYTE Queue) | USHORT APIENTRY DevHelp_QueueInit (NPBYTE Queue) | ||
;Assembler | |||
MOV BX,OFFSET DS:queue ; Points to the queue structure to be initialized. | |||
MOV BX,OFFSET DS:queue ; Points to the queue structure to be initialized. | ; (The Qsize field must be set up.) | ||
MOV DL,DevHlp_QueueInit | |||
MOV DL,DevHlp_QueueInit | |||
CALL [Device_Help] | |||
==Parameters== | ==Parameters== | ||
;Queue (NPBYTE) : input - Near pointer to the queue structure to be initialized. (The Qsize field must be set up.) | |||
; Queue (NPBYTE) : input - Near pointer to the queue structure to be initialized. (The Qsize field must be set up.) | |||
==Return Code== | ==Return Code== | ||
None. | |||
None . | |||
==Remarks== | ==Remarks== | ||
This function must be called before any other queue manipulation subroutine. Prior to this call, the physical device driver must allocate the character queue buffer with the following queue header: | This function must be called before any other queue manipulation subroutine. Prior to this call, the physical device driver must allocate the character queue buffer with the following queue header: | ||
type def struct_QUEUEHDR{ | type def struct_QUEUEHDR{ | ||
USHORT QSize; | USHORT QSize; | ||
USHORT QChrOut; | USHORT QChrOut; | ||
Line 41: | Line 27: | ||
BYTE Queue [1]; | BYTE Queue [1]; | ||
}QUEUEHDR; | }QUEUEHDR; | ||
The Qsize field should be initialized by the physical device driver before calling QueueInit. | The Qsize field should be initialized by the physical device driver before calling QueueInit. | ||
==Example Code== | ==Example Code== | ||
;C | |||
<PRE> | <PRE> | ||
USHORT APIENTRY DevHelp_QueueInit (NPBYTE Queue) | USHORT APIENTRY DevHelp_QueueInit (NPBYTE Queue) | ||
typedef struct _QUEUEHDR { /* DHQH */ | typedef struct _QUEUEHDR { /* DHQH */ | ||
USHORT QSize; | USHORT QSize; | ||
USHORT QChrOut; | USHORT QChrOut; | ||
Line 60: | Line 43: | ||
typedef QUEUEHDR *PQUEUEHDR; | typedef QUEUEHDR *PQUEUEHDR; | ||
</PRE> | </PRE> | ||
[[Category:DevHlps]] | [[Category:DevHlps]] |
Latest revision as of 05:33, 11 May 2025
This service initializes the specified character queue structure.
Syntax
- C
USHORT APIENTRY DevHelp_QueueInit (NPBYTE Queue)
- Assembler
MOV BX,OFFSET DS:queue ; Points to the queue structure to be initialized. ; (The Qsize field must be set up.) MOV DL,DevHlp_QueueInit CALL [Device_Help]
Parameters
- Queue (NPBYTE)
- input - Near pointer to the queue structure to be initialized. (The Qsize field must be set up.)
Return Code
None.
Remarks
This function must be called before any other queue manipulation subroutine. Prior to this call, the physical device driver must allocate the character queue buffer with the following queue header:
type def struct_QUEUEHDR{ USHORT QSize; USHORT QChrOut; USHORT QCount; BYTE Queue [1]; }QUEUEHDR;
The Qsize field should be initialized by the physical device driver before calling QueueInit.
Example Code
- C
USHORT APIENTRY DevHelp_QueueInit (NPBYTE Queue) typedef struct _QUEUEHDR { /* DHQH */ USHORT QSize; USHORT QChrOut; USHORT QCount; BYTE Queue[1]; } QUEUEHDR; typedef QUEUEHDR *PQUEUEHDR;