Leaked source code of windows server 2003
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.

58 lines
1.2 KiB

  1. #ifdef __cplusplus
  2. extern "C"
  3. {
  4. #endif
  5. ULONG License_string_encode (
  6. PCHAR str); /* NULL-terminated character string */
  7. /*
  8. Encodes string
  9. returns ULONG:
  10. <code> => encoded string
  11. function:
  12. */
  13. ULONG License_wstring_encode (
  14. PWCHAR str); /* NULL-terminated wide character string */
  15. /*
  16. Encodes string
  17. returns ULONG:
  18. <code> => encoded string
  19. function:
  20. */
  21. BOOL License_data_encode (
  22. PCHAR data, /* pointer to data */
  23. ULONG len); /* data length in bytes */
  24. /*
  25. Encodes arbitrary data stream
  26. returns BOOL:
  27. TRUE => data encoded OK
  28. FALSE => length has to be the multiples of LICENSE_DATA_GRANULARITY bytes
  29. function:
  30. */
  31. BOOL License_data_decode (
  32. PCHAR data, /* pointer to data */
  33. ULONG len); /* data length in bytes */
  34. /*
  35. Decodes arbitrary data stream
  36. returns BOOL:
  37. TRUE => data encoded OK
  38. FALSE => length has to be the multiples of LICENSE_DATA_GRANULARITY bytes
  39. function:
  40. */
  41. #ifdef __cplusplus
  42. }
  43. #endif