T
die Structur pSIS, bzw. pSIS ist ein Zeiger auf die Struct wird an HLM_LICGEN übergeben. Dort wird daraus LIC gebildet und dieses LIC wird dann in die Datei geschrieben.
HLM_LICGEN:
Word HLM_LICGEN
(
Word modadr, /* module adress, necessary if VTC shall be generated */
Byte *password, /* password to open SVK data */
Byte *svk_data, /* data from SVK file */
Long svk_data_len, /* length of SVK data */
Long serialno, /* serial # for Hardlock */
Long counter_limit, /* counter limt for global counter */
Word exp_date, /* expiration date as offset to 01/01/1999 in days */
Byte is_server, /* 0 = local, 1 = server (with license file) */
Word slots, /* maximum number of slots to use, if local automatically use 96 */
HLRUS_SLOTINFO *sis, /* pointer to sis (length = slots * SIZEOF(SIS)) */
int hw_desc, /* hardware descriptor: HL_MEMORY, HL_SERVER, HL_USB1 */
Byte *eep_buffer, /* where to put resulting EEP image */
Byte *lic_buffer, /* where to put license file data */
Long *lic_buflen, /* in + out: license data length */
Byte flags /* 0 = generate EEP/Lic, 1 = generate VTC */
);