Jump to content

PRTRESPONSE: Difference between revisions

From EDM2
Created page with "Information about the printer response data format. This structure is returned by the BIDI_Q_RESPONSE_FMT command. ==Example Code== <PRE> typedef struct _PRTRESPONSE { ULO..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
Information about the printer response data format. This structure is returned by the BIDI_Q_RESPONSE_FMT command.  
Information about the printer response data format. This structure is returned by the BIDI_Q_RESPONSE_FMT command.


==Example Code==
==Example Code==
<PRE>
<PRE>
typedef struct _PRTRESPONSE {
typedef struct _PRTRESPONSE {
   ULONG      flResponseType;    /* Flag bits that define response values. */
   ULONG      flResponseType;    /* Flag bits that define response values. */
   BYTE      bFirstChar;        /* The beginning byte of printer-to-host messages, if bit 0 of flResponseType is set. */
   BYTE      bFirstChar;        /* The beginning byte of printer-to-host messages, if bit 0 of flResponseType is set. */
   BYTE      bLastChar;        /* The terminator byte of printer-to-host messages, if bit 1 of flResponseType is set. */
   BYTE      bLastChar;        /* The terminator byte of printer-to-host messages, if bit 1 of flResponseType is set. */
   USHORT    usLenFieldOffset;  /* Offset from the beginning of printer-to-host messages, if bit 2 of flResponseType is set. */
   USHORT    usLenFieldOffset;  /* Offset from the beginning of printer-to-host messages, if bit 2 of flResponseType is set. */
   USHORT    usLenFieldWidth;  /* Number of bytes in the length field of the printer-to-host messages, if bit 2 of flResponseType is
   USHORT    usLenFieldWidth;  /* Number of bytes in the length field of the printer-to-host messages, if bit 2 of flResponseType is set. */
set. */
   USHORT    usReserved;        /* Reserved; must be 0 (zero). */
   USHORT    usReserved;        /* Reserved; must be 0 (zero). */
} PRTRESPONSE;
} PRTRESPONSE;


typedef PRTRESPONSE *PPRTRESPONSE;
typedef PRTRESPONSE *PPRTRESPONSE;
</PRE>
</PRE>


[[Category:Data type]]
[[Category:Data type]]

Latest revision as of 20:46, 26 February 2023

Information about the printer response data format. This structure is returned by the BIDI_Q_RESPONSE_FMT command.

Example Code

typedef struct _PRTRESPONSE {
  ULONG      flResponseType;    /* Flag bits that define response values. */
  BYTE       bFirstChar;        /* The beginning byte of printer-to-host messages, if bit 0 of flResponseType is set. */
  BYTE       bLastChar;         /* The terminator byte of printer-to-host messages, if bit 1 of flResponseType is set. */
  USHORT     usLenFieldOffset;  /* Offset from the beginning of printer-to-host messages, if bit 2 of flResponseType is set. */
  USHORT     usLenFieldWidth;   /* Number of bytes in the length field of the printer-to-host messages, if bit 2 of flResponseType is set. */
  USHORT     usReserved;        /* Reserved; must be 0 (zero). */
} PRTRESPONSE;

typedef PRTRESPONSE *PPRTRESPONSE;