-------------------------------------------------------------------- | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY | | ACCOMPANY THIS DOCUMENT (collectively referred to as an | | Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY | | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO | | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A | | PARTICULAR PURPOSE. The user assumes the entire risk as to the | | accuracy and the use of this Application Note. This Application | | Note may be copied and distributed subject to the following | | conditions: 1) All text must be copied without modification and | | all pages must be included; 2) If software is included, all files | | on the disk(s) must be copied without modification [the MS-DOS(R) | | utility DISKCOPY is appropriate for this purpose]; 3) All | | components of this Application Note must be distributed together; | | and 4) This Application Note may not be distributed for profit. | | | | Copyright 1990-1993 Microsoft Corporation. All Rights Reserved. | | Microsoft, MS-DOS, and the Microsoft logo are registered | | trademarks and Windows is a trademark of Microsoft Corporation. | -------------------------------------------------------------------- THIS IS A BETA VERSION OF THIS APPLICATION NOTE, please give us your suggestions and opinions. Date: 6/21/93 The purpose of this function is to provide the ability to detect printer states or to reset the printer from FORTRAN. This function is based on BIOS function 17h. and is limited to a subset of it's capabilities. It will provide services for LPT1, 2, & 3 as per the description of BIOS function 17h. Files included in this sample: PRINTQQ.ZIP: A PKZIP v2.04G compressed file that includes all of the below files. This file may or may not be sent with the files listed below. README.TXT: This file PR.FOR: Fortran code that calls PRINTQQ and displays the results. This code includes all of the known printer state values for the function. The executable will display the printer status. Build with FORTRAN Powerstation 1.0 PRINTQQ.FI: Include file with the INTERFACE statement for FORTRAN. PRINTQQ.FD: Include file with data declairations for PRINTQQ. This file defines the different switches that can be used when calling PRINTQQ(). PRINTQQ.ASM: MASM source for the PRINTQQ function. PRINTQQ.OBJ: Binary immage of PRINTQQ function compiled wi MASM 6.10 To create the example: Just include the OBJ file with your FORTRAN source files in your build. For Example: FL32 pr.for printqq.obj ! Command line build. COMMENT: This code was originally written for a customer that was interested in writing to a printer. It was observed that if the printer was off the program would stop during a call to WRITE. This function could be used with a wrapper function for WRITE() that would give more control while writing to printers.