Open topic with navigation
Property - CPAlgorithm
See Also: OverviewImplementationPropertiesMethodsEvents
Stored in License File if EZTrial is non-zero; Persisted from design time property page otherwise
Example of use found in:
Implementing Single User Copy Protection and Advanced Licensing Sample
Sets which Computer ID algorithm is used during the optional Copy Protection tests.
COMPNO_ENHANCED  - uses the Enhanced Computer ID Algorithms
The following values have been deprecated but are still
available to maintain backwards compatibility.
The following lists currently supported values for this property. Older unsupported or deprecated algorithms are no longer listed. Refer to the Computer ID Number topic for more information.
COMPNO_HDSERIAL  - uses the drive volume serial number of drive CPAlgorithmDrive.
COMPNO_NETNAME  - uses network file server name and volume path of drive CPAlgorithmDrive.
COMPNO_WINPRODID  - uses Windows ProductID and ProductKey created when Windows is installed.
COMPNO_IPADDR  - uses TCP/IP address of server provided in property CPAlgorithmDrive.
COMPNO_SERVER_MACADDR  - Provide a server's
UNC path, host name, or IP address through either the CPAlgorithmFile
or the CPAlgorithmDrive
properties (you may leave one as an empty string) and this will compute
a number based on that server's MAC
To use more than one algorithm, simply add the two
values together. For example, using both COMPNO_WINPRODID (128) and COMPNO_HDSERIAL
(2) would result in a CPAlgorithm of
For COMPNO_HDSERIAL, COMPNO_IPADDR, COMPNO_SERVER_MACADDR and COMPNO_NETNAME algorithms, the property CPAlgorithmDrive must be set. For COMPNO_SERVER_MACADDR, the property CPAlgorithmFile can also be set.
object.CPAlgorithm = 65536