Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. psntf.h
  5. Abstract:
  6. Header file for NTF format.
  7. Environment:
  8. Windows NT PostScript driver.
  9. Revision History:
  10. 11/12/96 -slam-
  11. Created.
  12. dd-mm-yy -author-
  13. description
  14. --*/
  15. #ifndef _PSNTF_H_
  16. #define _PSNTF_H_
  17. #define MAX_NTF 6 // maximum number of NTF files per device
  18. #define MAX_NTF_CACHE 4 // maximum number of cached NTF files
  19. typedef struct _NTF_FONTMTXENTRY
  20. {
  21. DWORD dwFontNameOffset; // offset to font name string
  22. DWORD dwHashValue; // hash value of name string
  23. DWORD dwDataSize; // size of font metrics data
  24. DWORD dwDataOffset; // offset to font metrics data
  25. DWORD dwVersion; // font version number
  26. DWORD dwReserved[3]; // reserved
  27. } NTF_FONTMTXENTRY, *PNTF_FONTMTXENTRY;
  28. typedef struct _NTF_GLYPHSETENTRY
  29. {
  30. DWORD dwNameOffset; // offset to glyphset name string
  31. DWORD dwHashValue; // hash value of name string
  32. DWORD dwDataSize; // size of glyphset data
  33. DWORD dwDataOffset; // offset to glyphset data
  34. DWORD dwGlyphSetType; // glyphset data type
  35. DWORD dwFlags; // flags
  36. DWORD dwReserved[2]; // reserved
  37. } NTF_GLYPHSETENTRY, *PNTF_GLYPHSETENTRY;
  38. //
  39. // NTF_VERSION_NUMBER history
  40. //
  41. // Version Comment Driver
  42. // 0x00010000 Initial version AdobePS5-NT4 5.0 and 5.1. and W2k Pscript5 (which also has the EOF marker)
  43. // 0x00010001 Added EOF marker AdobePS5-NT4 5.1.1 and AdobePS5-W2K
  44. //
  45. #define NTF_FILE_MAGIC 'NTF1'
  46. #define NTF_DRIVERTYPE_PS 'NTPS'
  47. #define NTF_EOF_MARK '%EOF'
  48. #ifdef ADOBE
  49. #define NTF_VERSION_NUMBER 0x00010001
  50. #else
  51. #define NTF_VERSION_NUMBER 0x00010000
  52. #endif
  53. typedef struct _NTF_FILEHEADER
  54. {
  55. DWORD dwSignature; // file magic number
  56. DWORD dwDriverType; // driver's magic number
  57. DWORD dwVersion; // NTF version number
  58. DWORD dwReserved[5]; // reserved
  59. DWORD dwGlyphSetCount; // no. of glyph sets included
  60. DWORD dwGlyphSetOffset; // offset to the glyphset table
  61. DWORD dwFontMtxCount; // no. of font metrics
  62. DWORD dwFontMtxOffset; // offset to the font metrics table
  63. } NTF_FILEHEADER, *PNTF_FILEHEADER;
  64. #define NTF_GET_ENTRY_DATA(pNTF, pEntry) (OFFSET_TO_POINTER(pNTF, pEntry->dwDataOffset))
  65. #endif //!_PSNTF_H_