SK_PLUS_LicenseLoad Function

Loads a license from contents in memory.

Remarks

Important Note

Each API context can only open a single license file. If your application uses multiple license files, it should use a separate API context for each license file.

Syntax

C/C++
SK_ResultCode SK_PLUS_LicenseLoad(SK_ApiContext context, int flags, SK_XmlDoc license);
Visual Basic
Declare Function SK_PLUS_LicenseLoad(ByVal context As Long, ByVal flags As Long, ByVal license As Long) As Long

Arguments

context
The API Context handle.
flags
Any flags passed into this function-call.
license
An XML document with the contents of the license to load.

Returns

All possible return values are included in the SK_ResultCode enumeration. Return codes to expect include:

Result Code Description
SK_ResultCode.SK_ERROR_NONE No error.
SK_ResultCode.SK_ERROR_DECRYPTION_FAILED The requested decryption operation has failed.
SK_ResultCode.SK_ERROR_VERIFICATION_FAILED The requested verification operation has failed.
SK_ResultCode.SK_ERROR_XML_PARSER_FAILED The XML parser encountered an error.
SK_ResultCode.SK_ERROR_INVALID_ARGUMENTS Some or all of the arguments are invalid.
SK_ResultCode.SK_ERROR_MEMORY_ALLOCATION Memory could not be allocated.