> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/sdi_2src_2prt_8h.md).

# prt.h

[Macros](#define-members) | [Functions](#func-members)

This graph shows which files directly or indirectly include this file:

![](/files/0mmWzrs4STEcWM3QvkV0)

[Go to the source code of this file.](/s-adk-5.1-programmers-guide/sdi_2src_2prt_8h_source.md)

|         |                                                                                             |
| ------- | ------------------------------------------------------------------------------------------- |
| Macros  |                                                                                             |
| #define | [CLA\_PRT](#a0988cf1c2b9639c4d3a5f95801814fac)   0x25                                       |
|         | <p>Class for PRT commands. <a href="#a0988cf1c2b9639c4d3a5f95801814fac">More...</a><br></p> |
| #define | [INS\_PRT\_SET\_PROPERTY](#af5938d17e2b26fc9fcaba16fb9ef95c7)   0x00                        |
|         | <p>prtSetProperty command <a href="#af5938d17e2b26fc9fcaba16fb9ef95c7">More...</a><br></p>  |
| #define | [INS\_PRT\_GET\_PROPERTY](#a471aa813d45d44527c570233554d2937)   0x01                        |
|         | <p>prtGetProperty command <a href="#a471aa813d45d44527c570233554d2937">More...</a><br></p>  |
| #define | [INS\_PRT\_HTML](#a6bb76f72cb93f6356cbfc75728ca8d22)   0x02                                 |
|         | <p>prtHTML command <a href="#a6bb76f72cb93f6356cbfc75728ca8d22">More...</a><br></p>         |
| #define | [INS\_PRT\_BITMAP](#aba8c8536bf160f5c2cec53e7709e9fb8)   0x04                               |

|           |                                                                                                                                                                                                   |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Functions |                                                                                                                                                                                                   |
| void      | [handlePrt](#aa9066d7ba9036f5ae176ad99b7f24c49) (unsigned short msgBufSize, unsigned char \*msg, unsigned long msgSize, unsigned short rspBufSize, unsigned char \*rsp, unsigned short \*rspSize) |
| int       | [print\_getStatus](#a47bd7ed2e6b0486a15adcfd3d1b58457) (int \*valueInt)                                                                                                                           |

### MacroDefinition Documentation <a href="#macro-definition-documentation" id="macro-definition-documentation"></a>

### CLA\_PRT <a href="#a0988cf1c2b9639c4d3a5f95801814fac" id="a0988cf1c2b9639c4d3a5f95801814fac"></a>

\#define CLA\_PRT   0x25

Class for PRT commands.

### INS\_PRT\_BITMAP <a href="#aba8c8536bf160f5c2cec53e7709e9fb8" id="aba8c8536bf160f5c2cec53e7709e9fb8"></a>

\#define INS\_PRT\_BITMAP   0x04

### INS\_PRT\_GET\_PROPERTY <a href="#a471aa813d45d44527c570233554d2937" id="a471aa813d45d44527c570233554d2937"></a>

\#define INS\_PRT\_GET\_PROPERTY   0x01

prtGetProperty command

### INS\_PRT\_HTML <a href="#a6bb76f72cb93f6356cbfc75728ca8d22" id="a6bb76f72cb93f6356cbfc75728ca8d22"></a>

\#define INS\_PRT\_HTML   0x02

prtHTML command

### INS\_PRT\_SET\_PROPERTY <a href="#af5938d17e2b26fc9fcaba16fb9ef95c7" id="af5938d17e2b26fc9fcaba16fb9ef95c7"></a>

\#define INS\_PRT\_SET\_PROPERTY   0x00

prtSetProperty command

### FunctionDocumentation <a href="#function-documentation" id="function-documentation"></a>

### handlePrt() <a href="#aa9066d7ba9036f5ae176ad99b7f24c49" id="aa9066d7ba9036f5ae176ad99b7f24c49"></a>

void handlePrt

Dispatch function to handle different printer commands

**Parameters**

\[in] **msgBufSize** size of the input message buffer \[in] **msg** pointer to the input message buffer \[in] **msgSize** size of the input message \[in] **rspBufSize** maximum size of the response buffer \[in,out] **rsp** pointer to the response buffer \[in,out] **rspSize** pointer to the response message size

{% hint style="info" %}
[handlePrt()](#aa9066d7ba9036f5ae176ad99b7f24c49) is always executed, even if invoked by a side command. Therefore, this function has no return value, see also [process\_side\_command()](/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/main_8cpp.md#a4892e1b795462119ef4d6fa87c860b90).
{% endhint %}

### print\_getStatus() <a href="#a47bd7ed2e6b0486a15adcfd3d1b58457" id="a47bd7ed2e6b0486a15adcfd3d1b58457"></a>

int print\_getStatus


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/sdi_2src_2prt_8h.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
