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.

97 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1992,1993 Microsoft Corporation
  3. Module Name:
  4. psqfontp.h
  5. Abstract:
  6. This header file contains the definitions required by the font query module
  7. that are private to that module.
  8. Author:
  9. James Bratsanos (v-jimbr) 8-Dec-1992
  10. --*/
  11. #define PSQFONT_MAX_FONTS 50
  12. #define PSQFONT_SCRATCH_SIZE 255
  13. #define PSQFONT_SUBST_LIST "System\\CurrentControlSet\\Services\\MacPrint\\FontSubstList"
  14. #define PSQFONT_NT_FONT_LIST "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"
  15. #define PSQFONT_CURRENT_FONT_LIST "System\\CurrentControlSet\\Services\\MacPrint\\CurrentFontList"
  16. enum {
  17. PSP_DOING_PS_NAME,
  18. PSP_DOING_TT_NAME,
  19. PSP_GETTING_EOL,
  20. };
  21. typedef struct {
  22. LPSTR lpFontName;
  23. DWORD dwFontNameLen;
  24. LPSTR lpFontFileName;
  25. DWORD dwFontFileNameLen;
  26. } PS_FONT_ENTRY;
  27. typedef PS_FONT_ENTRY *PPS_FONT_ENTRY;
  28. typedef struct {
  29. DWORD dwSerial;
  30. HANDLE hHeap;
  31. DWORD dwNumFonts;
  32. PS_FONT_ENTRY FontEntry[1];
  33. } PS_FONT_QUERY;
  34. typedef PS_FONT_QUERY *PPS_FONT_QUERY;
  35. LPTSTR LocPsAllocAndCopy( HANDLE hHeap, LPTSTR lptStr );
  36. #define PS_QFONT_SERIAL 0x0F010102
  37. //
  38. // Function Prototypes
  39. //
  40. LONG LocPsQueryTimeAndValueCount( HKEY hKey,
  41. LPDWORD lpdwValCount,
  42. PFILETIME lpFileTime);
  43. BOOL PsQDLLInit(
  44. PVOID hmod,
  45. DWORD Reason,
  46. PCONTEXT pctx OPTIONAL);
  47. PS_QFONT_ERROR LocPsAddToListIfNTfont( PPS_FONT_QUERY pPsFontQuery,
  48. HKEY hNTFontlist,
  49. DWORD dwNumNTfonts,
  50. LPTSTR lpPsName,
  51. LPTSTR lpTTData);
  52. LONG LocPsWriteDefaultSubListToRegistry(void);
  53. LONG LocPsGetOrCreateSubstList( PHKEY phKey );
  54. PS_QFONT_ERROR LocPsVerifyCurrentFontList();
  55. VOID LocPsEndMutex(HANDLE hMutex);
  56. VOID LocPsNormalizeFontName(LPTSTR lptIN, LPTSTR lptOUT);
  57. PS_QFONT_ERROR LocPsMakeSubListEntry( PPS_FONT_QUERY hFontList,
  58. LPWSTR lpNTFontData,
  59. LPTSTR lpFaceName );
  60.