DeactivateLicense static method

int DeactivateLicense()

Deactivates the license activation and frees up the correponding activation slot by contacting the Cryptlex servers. This function should be executed at the time of deregistration, ideally on a button click.

Returns LexStatusCodes LA_OK, and LA_FAIL.

The function throws a LexActivatorException on error.

Implementation

static int DeactivateLicense() {
  int status = _lexActivatorNative.DeactivateLicense();
  switch (status) {
    case LexStatusCodes.LA_OK:
      return LexStatusCodes.LA_OK;
    case LexStatusCodes.LA_FAIL:
      return LexStatusCodes.LA_FAIL;
    default:
      throw LexActivatorException(status);
  }
}