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.

98 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. unilib
  5. Abstract:
  6. Unidrv specific library functions
  7. Environment:
  8. Windows NT printer drivers
  9. Revision History:
  10. 10/15/96 -amandan-
  11. Created it.
  12. --*/
  13. #ifndef _UNILIB_H_
  14. #define _UNILIB_H_
  15. //
  16. // Alignment functions
  17. //
  18. WORD
  19. DwAlign2(
  20. IN PBYTE pubData);
  21. DWORD
  22. DwAlign4(
  23. IN PBYTE pubData);
  24. //
  25. // String handling function
  26. // Convert Unicode string to multi-byte string and vice versa
  27. //
  28. DWORD
  29. DwCopyStringToUnicodeString(
  30. IN UINT uiCodePage,
  31. IN PSTR pstrCharIn,
  32. OUT PWSTR pwstrCharOut,
  33. IN INT iwcOutSize);
  34. DWORD
  35. DwCopyUnicodeStringToString(
  36. IN UINT uiCodePage,
  37. IN PWSTR pwstrCharIn,
  38. OUT PSTR pstrCharOut,
  39. IN INT icbOutSize);
  40. //
  41. // CodePage and Character set handling functions
  42. //
  43. ULONG
  44. UlCharsetToCodePage(
  45. IN UINT uiCharSet);
  46. #ifdef KERNEL_MODE
  47. //
  48. //Misc. KM mode lib routines.
  49. //Defined in printer5\lib\uni\km\crtlib.c
  50. //
  51. int iDrvPrintfA(
  52. PCHAR pchBuf,
  53. PCHAR pchSrc,
  54. ...
  55. );
  56. int iDrvPrintfW(
  57. PWCHAR pchBuf,
  58. PWCHAR pchSrc,
  59. ...
  60. );
  61. #endif
  62. //
  63. // Font installer font file directory
  64. // %SystemRoot%\system32\spool\drivers\unifont\
  65. //
  66. #define FONTDIR TEXT("\\unifont\\")
  67. #endif // !_UNILIB_H_