ioctl12.hlp (Topic list)
PRT_QUERYACTIVEFONT (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVIOCTL
 
USHORT DosDevIOCtl(pbFontInfo, pbCommand, 0x0069, 0x0005, hDevice)
PBYTE pbFontInfo;    /* pointer to structure for font information */
PBYTE pbCommand;     /* pointer to byte with command information  */
HFILE hDevice;       /* device handle                             */
 
The PRT_QUERYACTIVEFONT function determines which code page and font are
currently active.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
pbFontInfo  Points to a FONTINFO structure that specifies the active font.
 
pbCommand   Points to a reserved 8-bit value. The value must be zero.
 
hDevice     Identifies the printer that receives the device-control
            function. The handle must have been created previously by using
            the DosOpen function.
 
Return Value
 
The return value is zero if the function is successful or an error value if
an error occurs.
 
See Also
 
PRT_ACTIVATEFONT, FONTINFO