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.

57 lines
659 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. Utils.h
  5. Abstract:
  6. Headers for utilities
  7. Author:
  8. Felix Wong [t-felixw] 23-Sept-1996
  9. --*/
  10. NTSTATUS
  11. MapNwToNtStatus(
  12. const NW_STATUS nwstatus
  13. );
  14. int
  15. UnicodeToAnsiString(
  16. LPWSTR pUnicode,
  17. LPSTR pAnsi,
  18. DWORD StringLength
  19. );
  20. LPSTR
  21. AllocateAnsiString(
  22. LPWSTR pPrinterName
  23. );
  24. void
  25. FreeAnsiString(
  26. LPSTR pAnsiString
  27. );
  28. int
  29. AnsiToUnicodeString(
  30. LPSTR pAnsi,
  31. LPWSTR pUnicode,
  32. DWORD StringLength
  33. );
  34. LPWSTR
  35. AllocateUnicodeString(
  36. LPSTR pAnsiString
  37. );
  38. void
  39. FreeUnicodeString(
  40. LPWSTR pUnicodeString
  41. );