Annotation of ntddk/src/print/lib/fontread.h, revision 1.1.1.1

1.1       root        1: /****************************** MODULE HEADER *******************************
                      2:  * fontread.h
                      3:  *      Data and function prototypes used for reading the common font
                      4:  *      installer file format.  Typically used by drivers during font
                      5:  *      counting and enumeration at EnabldPDEV() time - at the time of
                      6:  *      writing!  Subject to change as the DDI/GDI change.
                      7:  *
                      8:  * HISTORY:
                      9:  *  13:25 on Sat 12 Jun 1993    -by-    Lindsay Harris   [lindsayh]
                     10:  *      Stop using memory mapping to avoid AVs when net dies.
                     11:  *
                     12:  *  11:18 on Thu 27 Feb 1992    -by-    Lindsay Harris   [lindsayh]
                     13:  *
                     14:  *
                     15:  * Copyright (C)  1992, 1993   Microsoft Corporation.
                     16:  *
                     17:  ****************************************************************************/
                     18: 
                     19: 
                     20: /*
                     21:  *   The following structure is returned from the FIOpenRead() function,
                     22:  * and contains the basic information needed to access the data in the
                     23:  * file once it is memory mapped.
                     24:  */
                     25: 
                     26: typedef  struct
                     27: {
                     28:     HANDLE hFont;               /* Font installer file, for downloaded part */
                     29:     BYTE  *pbBase;              /* Base address of data as mapped */
                     30:     void  *pvFix;               /* Fixed part at start of file */
                     31:     ULONG  ulFixSize;           /* Bytes in fixed data record */
                     32:     ULONG  ulVarOff;            /* File offset of data, relative file start */
                     33:     ULONG  ulVarSize;           /* Bytes in variable part */
                     34: }  FI_MEM;
                     35: 
                     36: 
                     37: /*
                     38:  *   Map the given file name into memory for subsequent scanning.
                     39:  */
                     40: 
                     41: int    iFIOpenRead( FI_MEM *, HANDLE, LPWSTR );
                     42: 
                     43: /*
                     44:  *   Get the next entry in the list.  Returns TRUE if OK, else no more.
                     45:  */
                     46: 
                     47: BOOL   bFINextRead( FI_MEM * );
                     48: 
                     49: /*
                     50:  *   Return to the beginning of the file.  Returns number of records in file.
                     51:  */
                     52: 
                     53: int   iFIRewind( FI_MEM * );
                     54: 
                     55: /*
                     56:  *   Call to close off operations and free the memory.
                     57:  */
                     58: 
                     59: BOOL  bFICloseRead( FI_MEM * );

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.