logo_wupi_64x64px WupiDecreaseUnitCounter

WupiDecreaseUnitCounter decrements the Unit Counter (Limit Counter for WibuKey) of the specified license by an indicated value.

For WibuKey the duration of this command increases by the amount of the decrement value since each decrement by 1 needs one hardware encryption.

  • C, C++
  • C#

Syntax

int WupiDecreaseUnitCounter(int iLicenseList, int cUnits);

Parameters

•iLicenseList refers to the license list index.

•cUnits specifies the number of units to reduce.

Return

This function returns FALSE (0), if an error occurs, otherwise TRUE (1).

Syntax

public static bool DecreaseUnitCounter(int LicenseList, int Units)

Parameters

•LicenseList refers to the license list index.

•Units specifies the number of units to reduce.

Return

This function returns false if an error occurs, otherwise true.