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.

77 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1998-99 Microsoft Corporation
  3. Module Name:
  4. base64.h
  5. Abstract:
  6. Author:
  7. Fred Chong (FredCh) 7/1/1998
  8. Environment:
  9. Notes:
  10. --*/
  11. #ifndef __BASE64_H__
  12. #define __BASE64_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #ifdef UNICODE
  17. #define LSBase64Decode LSBase64DecodeW
  18. #else
  19. #define LSBase64Decode LSBase64DecodeA
  20. #endif // !UNICODE
  21. DWORD // ERROR_*
  22. LSBase64DecodeA(
  23. IN CHAR const *pchIn,
  24. IN DWORD cchIn,
  25. OUT BYTE *pbOut,
  26. OUT DWORD *pcbOut);
  27. DWORD // ERROR_*
  28. LSBase64DecodeW(
  29. IN WCHAR const *pchIn,
  30. IN DWORD cchIn,
  31. OUT BYTE *pbOut,
  32. OUT DWORD *pcbOut);
  33. #ifdef UNICODE
  34. #define LSBase64Encode LSBase64EncodeW
  35. #else
  36. #define LSBase64Encode LSBase64EncodeA
  37. #endif // !UNICODE
  38. DWORD // ERROR_*
  39. LSBase64EncodeA(
  40. IN BYTE const *pbIn,
  41. IN DWORD cbIn,
  42. OUT CHAR *pchOut,
  43. OUT DWORD *pcchOut);
  44. DWORD // ERROR_*
  45. LSBase64EncodeW(
  46. IN BYTE const *pbIn,
  47. IN DWORD cbIn,
  48. OUT WCHAR *pchOut,
  49. OUT DWORD *pcchOut);
  50. #ifdef __cplusplus
  51. } // Balance extern "C" above
  52. #endif
  53. #endif // BASE64