Description

The License Quantity is an option of a Product Item. It defines the number of licenses that are available for this Product Item.

The License Quantity is stored in the Extended Protected Data entry with Extended Type 128. The length of data has to be 16 bytes:

•Byte 0..3: The first 4 bytes contain the signature "cmnw" (ASCII: 99,109,110,119).

•Byte 4..7: These 4 bytes contain the License Quantity value in little endian order.

•Byte 8..11: These 4 bytes contain the access restrictions. For local access these flags don't have any effect. Bit definition:

oBit 0 (Byte 8): If this flag is set, no UserLimit access via network is allowed to this entry.

oBit 1 (Byte 8): If this flag is set, no NoUserLimit access via network is allowed to this entry.

oBit 2 (Byte 8): If this flag is set, no Exclusive access via network is allowed to this entry.

oBit 3 (Byte 8): If this flag is set, no StationShare access via network is allowed to this entry.

•Byte 12..15: These 4 bytes are reserved for future purposes.

Further description:

•If no License Quantity is set (the Extended Protected Data of type 128 does not exist), CodeMeter License Server automatically provides one license.

•If the bits in Byte 8 are not set, there is no restriction in the access to this entry via network.

•If the License Quantity is set to a value of 0, the access is only allowed from the local system. Any access over network is prohibited.