LicenseKey.cs 443 B

12345678910111213141516
  1. using ComPDFKit.NativeMethod;
  2. using System;
  3. using System.Xml;
  4. using static ComPDFKit.NativeMethod.CPDFSDKVerifier;
  5. public static class SDKLicenseHelper
  6. {
  7. public static bool LicenseVerify()
  8. {
  9. if (!LoadNativeLibrary())
  10. return false;
  11. LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
  12. return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
  13. }
  14. }