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.

110 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1992-1993 Microsoft Corporation
  3. Module Name:
  4. ConvPrt.c
  5. Abstract:
  6. This module contains:
  7. NetpConvertPrintDestArrayCharSet
  8. NetpConvertPrintDestCharSet
  9. NetpConvertPrintJobArrayCharSet
  10. NetpConvertPrintJobCharSet
  11. NetpConvertPrintQArrayCharSet
  12. NetpConvertPrintQCharSet
  13. This routines may be used for UNICODE-to-ANSI conversion, or
  14. ANSI-to-UNICODE conversion. The routines assume the structures are
  15. in native format for both input and output.
  16. Author:
  17. Jonathan Schwartz (JSchwart) 01-Feb-2001
  18. Environment:
  19. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  20. Requires ANSI C extensions: slash-slash comments, long external names.
  21. Notes:
  22. Beware that many of the parameters to the functions in this file
  23. are implicitly used by the various COPY_ and CONVERT_ macros:
  24. IN LPVOID FromInfo
  25. OUT LPVOID ToInfo
  26. IN BOOL ToUnicode
  27. IN OUT LPBYTE * ToStringAreaPtr
  28. Revision History:
  29. 01-Feb-2001 JSchwart
  30. Created.
  31. --*/
  32. NET_API_STATUS
  33. NetpConvertPrintDestCharSet(
  34. IN DWORD Level,
  35. IN BOOL AddOrSetInfoApi,
  36. IN LPVOID FromInfo,
  37. OUT LPVOID ToInfo,
  38. IN BOOL ToUnicode,
  39. IN OUT LPBYTE * ToStringAreaPtr OPTIONAL
  40. );
  41. NET_API_STATUS
  42. NetpConvertPrintDestArrayCharSet(
  43. IN DWORD Level,
  44. IN BOOL AddOrSetInfoApi,
  45. IN LPVOID FromInfo,
  46. OUT LPVOID ToInfo,
  47. IN BOOL ToUnicode,
  48. IN OUT LPBYTE * ToStringAreaPtr OPTIONAL,
  49. IN DWORD DestCount
  50. );
  51. NET_API_STATUS
  52. NetpConvertPrintJobCharSet(
  53. IN DWORD Level,
  54. IN BOOL AddOrSetInfoApi,
  55. IN LPVOID FromInfo,
  56. OUT LPVOID ToInfo,
  57. IN BOOL ToUnicode,
  58. IN OUT LPBYTE * ToStringAreaPtr OPTIONAL
  59. );
  60. NET_API_STATUS
  61. NetpConvertPrintJobArrayCharSet(
  62. IN DWORD Level,
  63. IN BOOL AddOrSetInfoApi,
  64. IN LPVOID FromInfo,
  65. OUT LPVOID ToInfo,
  66. IN BOOL ToUnicode,
  67. IN OUT LPBYTE * ToStringAreaPtr OPTIONAL,
  68. IN DWORD JobCount
  69. );
  70. NET_API_STATUS
  71. NetpConvertPrintQArrayCharSet(
  72. IN DWORD Level,
  73. IN BOOL AddOrSetInfoApi,
  74. IN LPVOID FromInfo,
  75. OUT LPVOID ToInfo,
  76. IN BOOL ToUnicode,
  77. IN OUT LPBYTE * ToStringAreaPtr OPTIONAL,
  78. IN DWORD QCount
  79. );
  80. NET_API_STATUS
  81. NetpConvertPrintQCharSet(
  82. IN DWORD Level,
  83. IN BOOL AddOrSetInfoApi,
  84. IN LPVOID FromInfo,
  85. OUT LPVOID ToInfo,
  86. IN BOOL ToUnicode,
  87. IN OUT LPBYTE * ToStringAreaPtr OPTIONAL
  88. );