Use custom counters feature to securely manage up to 10 32bit unsigned integer values directly from protected application.

Custom counters are available for all protection methods and are shared by all applications protected with same Application signature and Program ID.

Default values of custom counters from project settings are embedded into protected application during protection process.

TIP: If "Reset previous counters" option is enabled for new update, such update will replace existing custom counters on remote machine with latest default values.

Any counter value can be read or updated at any time from protected application by using protection interface. GetInterfaceData() protection interface function is used for reading and UpdateCustomCounters() is used for updating custom counters.

Custom counters for applications protected with REMOTE protection method can be changed by using license extension feature.

Custom counters can also be used as extension of custom features as each counter can hold up to 32 additional custom features.

custom counters settings

Custom counters

Select to enable custom counters.

Reset previous counters

If enabled, protection code will replace existing custom counters on remote machine with (default) values which were stored to protected application during protection process. (Default status: OFF)

NOTE: Be sure to increase Update ID when enabling this option. All updates are identified by Update ID value. Counters will be reset only if Update ID is higher than existing Update ID on remote machine.

Preserve counters after license expires

Protection code will not reset custom counters to default values when license expires. Option is available only if limited license featured is enabled. (Default status: OFF)

Preserve counters after license removal

Protection code will preserve custom counters after license removal. (Default status: OFF)

Preserve counters after license transfer

Protection code will preserve custom counters after license transfer. (Default status: OFF)

Preserve counters after serial invalidation

Protection code will preserve custom counters after serial number is invalidated. (Default status: OFF)

Using custom counters as custom features

Each custom counter can be edited as a set of 32 features. Click on "..." button along counter to edit it as set of features.

custom counters as features

 

Since custom counter is a 32bit value it is possible to pass up to 320 (32 * 10 custom counters) additional feature statuses by storing feature statuses in custom counters.

Each bit in custom counter value represents feature status as follows:

Bit 0 = Feature 1 ( if bit 0 is set then feature 1 is enabled)
Bit 1 = Feature 2 ( if bit 1 is set then feature 2 is enabled)
...
Bit 31 = Feature 32 

Short feature description can be set for each of these 320 features. Descriptions are saved together with default custom counters in project file.