SK_PLUS4_GenerateUserCode2Value Function

Generates a Protection PLUS 4 compatible trigger code "User Code 2" (or "Computer ID") value from the current system identifiers.

Syntax

C/C++
SK_ResultCode SK_PLUS4_GenerateUserCode2Value(SK_ApiContext context, int flags, int *userCode2);
Visual Basic
Declare Function SK_PLUS4_GenerateUserCode2Value(ByVal context As Long, ByVal flags As Long, ByRef userCode2 As Long) As Long

Arguments

context
The API Context handle.
flags
Any flags passed into this function-call.
userCode2
Reference/pointer to an integer, which will point to the "User Code 2" (or "Computer ID") value when the call succeeds.

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_INVALID_DATA The presence of invalid data has been detected.
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.