SK_PLUS4_GenerateUserCode1Value Function

Generates a Protection PLUS 4 compatible trigger code "User Code 1" (or Session Code) value, which may be used to make each activation attempt and each trigger code issued for a system unique.

Remarks

This function is compatible with pp_cenum.

Syntax

C/C++
SK_ResultCode SK_PLUS4_GenerateUserCode1Value(int flags, int *userCode1);
Visual Basic
Declare Function SK_PLUS4_GenerateUserCode1Value(ByVal flags As Long, ByRef userCode1 As Long) As Long

Arguments

flags
Any flags passed into this function-call.
userCode1
Reference/pointer to an integer, which will point to the "User Code 1" (or Session Code) 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_ARGUMENTS Some or all of the arguments are invalid.
SK_ResultCode.SK_ERROR_DATETIME_CONVERSION_FAILED A date-time conversion operation failed.