|Manuals

ILicense::Activate Method

Description

This method activates the server’s machine license by validating customer identification and serial number information.

Syntax

[id(0x000000CE)]
HRESULT _stdcall Activate(
    [in] BSTR customerId,
    [in] BSTR serial,
    [out] long* resultCode,
    [out] BSTR* resultText,
    [out, retval] VARIANT_BOOL* Value
);

Parameters

Parameter Type Direction Description
customerId BSTR [in] Customer identification
serial BSTR [in] Serial number
resultCode long* [out] Result code
resultText BSTR* [out] Error message details
Value VARIANT_BOOL* [out, retval] Success indicator

Return Value

Returns True when license activation succeeds. Returns False if activation fails; in failure cases, examine the resultCode and resultText parameters for diagnostic information.

See Also