Loads a License from a file or Windows Registry key.
This function calls SK_PermissionsGrantControlToWorld to help ensure all users have access.
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.
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_COULD_NOT_LOAD_LICENSE | License could not be loaded. |
SK_ResultCode.SK_ERROR_COULD_NOT_OPEN_FILE | An attempt to open a file failed. |
SK_ResultCode.SK_ERROR_COULD_NOT_READ_FILE | An attempt to read a file failed. |
SK_ResultCode.SK_ERROR_COULD_NOT_OPEN_REGISTRY_KEY | An attempt to open a registry key failed. |
SK_ResultCode.SK_ERROR_COULD_NOT_READ_REGISTRY_KEY | An attempt to read a registry key value failed. |
SK_ResultCode.SK_ERROR_IO_OPERATION_FAILED | An attempt to perform an I/O operation failed. |
SK_ResultCode.SK_ERROR_MEMORY_ALLOCATION | Memory could not be allocated. |