# AG\_GETDPI
> [HTML Version](ag_getdpi.htm)
_Reviewed and revised December 2023_
**tab(-10, AG\_GETDPI); \{ctlid;\} chr(127); ** [Tab(-10,x) Syntax Notes](ag_xxx_syntax-notes.htm.md)
AG\_GETDPI (111) returns the DPI for the workstation, and optionally for the monitor associated with the specified _ctlid_. See [MX\_GETDPI](mx_getdpi.htm.md) for details.
This function has both a [subroutine and a print tab implementation](subroutine-print-pairs.htm.md).
**Parameters**
_ctlid_
optional numeric ID of a control associated with the monitor to get the DPI from
**Response**
_sysdpi, ctldpi _
_sysdpi_ is the DPI for the primary monitor; _ctldpi_ is the DPI for the monitor on which the control specified by _ctlid_ is located (or 0 if no ctlid specified.)
**See Also**
• [MX\_GETDPI](mx_getdpi.htm.md)[xs](keyword-types.htm.md)
**History**
2020 October, A-Shell 6.5.1692: Function added to A-Shell