cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can a client program determine that a feature was checked out from a FlexID dongle?

How can a client program determine that a feature was checked out from a FlexID dongle?

Summary

How can a client program determine that a feature was checked out from a FlexID dongle?

Question

Is it possible with the license file C API to check if a feature was checked out from a FlexID dongle?


Answer

After a checkout, check the hostid type.

Attached is a sample of another hostid type output (not flexid, but it should work in same way).


Additional Information

/* Currently used HOSTIDs */
#define HOSTID_DEFAULT -1 /* for lc_hostid() */
#define HOSTID_LONG 1 /* Longword hostid, eg, SUN */
#define HOSTID_ETHER 2 /* Ethernet address, eg, VAX */
#define HOSTID_ANY 3 /* Any hostid; used for ISV testing and development */
#define HOSTID_USER 4 /* Username HOSTID=USER=xxx */
#define HOSTID_DISPLAY 5 /* Display */
#define HOSTID_HOSTNAME 6 /* Node name HOSTID=HOSTNAME=xxx */
#define HOSTID_ID_STRING 9 /* HOSTID=ID_STRING=xxx, equivalent to HOSTID_STRING */
#define HOSTID_DISK_SERIAL_NUM 11 /* Windows, and NT disk serial number */
#define HOSTID_INTERNET 12 /* Default v4:= ###.###.###.### /v6:= X:X:X:X:X:X:X:X*/
#define HOSTID_DEMO 13 /* HOSTID=DEMO for ISVs to use in their application */
#define HOSTID_ID 18 /* HOSTID=ID=#, equivalent to HOSTID_SERNUM_ID */
#define HOSTID_FLEXID6 23 /* FLEXID6 */
#define HOSTID_FLEXID7 10 /* FLEXID7 */
#define HOSTID_FLEXID8 14 /* FLEXID8 */
#define HOSTID_FLEXID9 15 /* FLEXID9 */
#define HOSTID_FLEXID10 51 /* FLEXID10 */

#define HOSTID_FLEXID11 52 /* FLEXID11 */

For FLEXID9 The type is 15

For FLEXID10 The type is 51

Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 14, 2018 10:42 PM
Updated by: