PRTRESPONSE: Difference between revisions
Appearance
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..." |
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; /* | ULONG flResponseType; /* Flag bits that define response values. */ | ||
BYTE bFirstChar; /* | BYTE bFirstChar; /* The beginning byte of printer-to-host messages, if bit 0 of flResponseType is set. */ | ||
BYTE bLastChar; /* | BYTE bLastChar; /* The terminator byte of printer-to-host messages, if bit 1 of flResponseType is set. */ | ||
USHORT usLenFieldOffset; /* | USHORT usLenFieldOffset; /* Offset from the beginning of printer-to-host messages, if bit 2 of flResponseType is set. */ | ||
USHORT usLenFieldWidth; /* | 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; /* | |||
} 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;