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.

94 lines
1.9 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996-1998
  5. //
  6. // File: decode.h
  7. //
  8. // Contents: License decoding API
  9. //
  10. // History: 01-21-98 FredCh Created
  11. //
  12. //-----------------------------------------------------------------------------
  13. #ifndef _DECODE_H_
  14. #define _DECODE_H_
  15. LICENSE_STATUS
  16. DecodeLicense(
  17. PLicense_Verification_Data pDecodedData,
  18. DWORD cbLicense,
  19. PBYTE pLicense );
  20. LICENSE_STATUS
  21. DecodeLicenseObject(
  22. LPCSTR lpszStructType,
  23. const BYTE * pbEncoded,
  24. DWORD cbEncoded,
  25. PVOID * ppObject );
  26. LICENSE_STATUS
  27. DecodeSubjectField(
  28. BYTE * pbEncoded,
  29. DWORD cbEncoded,
  30. PLicense_Verification_Data pDecodedData );
  31. LICENSE_STATUS
  32. DecodeLicenseExtension(
  33. DWORD cExt,
  34. PCERT_EXTENSION pExt,
  35. PBYTE * ppExtensionData,
  36. LPSTR pszExtensionOID );
  37. LICENSE_STATUS
  38. DecodeSignedContent(
  39. BYTE * pbEncoded,
  40. DWORD cbEncoded,
  41. PLicense_Verification_Data pDecodedData );
  42. LICENSE_STATUS
  43. DecodeLicenseInfo(
  44. PCERT_INFO pInfo,
  45. DWORD cbEncoded,
  46. PBYTE pbEncoded,
  47. PLicense_Verification_Data pDecodedData );
  48. LICENSE_STATUS
  49. PrintLicenseInfo(
  50. PCERT_INFO pInfo,
  51. DWORD cbEncoded,
  52. PBYTE pbEncoded,
  53. PLicense_Verification_Data pDecodedData );
  54. LICENSE_STATUS
  55. DecodeName(
  56. BYTE *pbEncoded,
  57. DWORD cbEncoded );
  58. void
  59. PrintBytes(
  60. LPCSTR pszHdr,
  61. BYTE *pb,
  62. DWORD cbSize );
  63. LPCSTR
  64. FileTimeText(
  65. FILETIME *pft );
  66. void
  67. PrintExtensions(
  68. DWORD cExt,
  69. PCERT_EXTENSION pExt);
  70. #endif