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.

33 lines
647 B

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