Source code of Windows XP (NT5)
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.

63 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1992,1993 Microsoft Corporation
  3. Module Name:
  4. psqfont.h
  5. Abstract:
  6. This header file contains the definitions required by the font query module
  7. these functions can be called in such a way to determine which PostScript
  8. font names will be available for the next pstodib session, the data is
  9. managed in the registry.
  10. Author:
  11. James Bratsanos (v-jimbr) 8-Dec-1992
  12. --*/
  13. typedef HANDLE PS_QUERY_FONT_HANDLE;
  14. typedef PS_QUERY_FONT_HANDLE *PPS_QUERY_FONT_HANDLE;
  15. #define PS_QFONT_ERROR DWORD
  16. enum {
  17. PS_QFONT_SUCCESS=0,
  18. PS_QFONT_ERROR_NO_MEM,
  19. PS_QFONT_ERROR_CANNOT_CREATE_HEAP,
  20. PS_QFONT_ERROR_NO_REGISTRY_DATA,
  21. PS_QFONT_ERROR_CANNOT_QUERY,
  22. PS_QFONT_ERROR_INVALID_HANDLE,
  23. PS_QFONT_ERROR_INDEX_OUT_OF_RANGE,
  24. PS_QFONT_ERROR_FONTNAMEBUFF_TOSMALL,
  25. PS_QFONT_ERROR_FONTFILEBUFF_TOSMALL,
  26. PS_QFONT_ERROR_NO_NTFONT_REGISTRY_DATA,
  27. PS_QFONT_ERROR_FONT_SUB
  28. };
  29. PS_QFONT_ERROR WINAPI PsBeginFontQuery( PPS_QUERY_FONT_HANDLE pFontQueryHandle);
  30. PS_QFONT_ERROR WINAPI PsGetNumFontsAvailable( PS_QUERY_FONT_HANDLE pFontQueryHandle,
  31. DWORD *pdwFonts);
  32. PS_QFONT_ERROR WINAPI PsGetFontInfo( PS_QUERY_FONT_HANDLE pFontQueryHandle,
  33. DWORD dwIndex,
  34. LPSTR lpFontName,
  35. LPDWORD dwSizeOfFontName,
  36. LPSTR lpFontFileName,
  37. LPDWORD dwSizeOfFontFileName );
  38. PS_QFONT_ERROR WINAPI PsEndFontQuery( PS_QUERY_FONT_HANDLE pFontQueryHandle);
  39.