SK_PLUS_NetworkSessionCheckout Function

Performs a session check-out for a given duration of time to enable offline use.

Remarks

The loaded certificate file will automatically be locked to the process. If it is not desired to lock the file use the SK_FLAGS_NETWORKSESSION_SKIPLOCKATTEMPT flag.

Syntax

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

Arguments

context
The API Context handle.
flags
Any flags passed into this function-call.
certificate
An XML document containing the encrypted certificate. SK_SOLO_NetworkSessionCheckoutGetRequest in combination with SK_CallXmlWebService should be used to retrieve this certificate.

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_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_INVALID_DATA The presence of invalid data has been detected.
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_MEMORY_ALLOCATION Memory could not be allocated.
SK_ResultCode.SK_ERROR_COULD_NOT_OPEN_FILE An attempt to open a file failed.
SK_ResultCode.SK_ERROR_LICENSE_SYSTEM_IDENTIFIERS_DONT_MATCH License system identifiers do not match.
SK_ResultCode.SK_ERROR_LICENSE_NOT_EFFECTIVE_YET License is not yet effective.
SK_ResultCode.SK_ERROR_LICENSE_EXPIRED License has expired.