Daylight v4.9
Release Date: 1 February 2008

Name

dt_check_license - test whether a Daylight product is licensed

Generic Prototype

dt_check_license(dt_Integer, dt_String) => dt_Integer

C Prototype

#include "dt_smiles.h"

dt_Integer dt_e_check_license(dt_Integer check_what, dt_Integer prodlen, dt_String product)

FORTRAN Prototype

include 'dt_f_smiles.inc'

integer*4 dt_f_check_license(check_what, prodlen, product)

integer*4 check_what
integer*4 prodlen
character*() product

Description

Indicates whether a particular Daylight product is licensed.

The parameter 'check_what' indicates what type of license is to be checked:

     DX_TOOLKIT_LICENSE    check a toolkit's license
     DX_PROGRAM_LICENSE    check a program's license
     DX_SERVER_LICENSE     check a server's license
     DX_DATABASE_LICENSE   check a database's license
The parameter 'product' is the name of the product that is being tested; e.g. for toolkits it might be "smiles" or "thor"; for programs it might be "thormanager"; for servers it might be "merlin"; for databases it might be "wdi94".

Return Value

On failure (the product is not licensed, or the license is expired, or the product is licensed but does not match the type specified by 'check_what'), returns zero. On success returns the following, depending on 'check_what':
     DX_TOOLKIT_LICENSE    Returns 1 if the toolkit is licensed.
     DX_PROGRAM_LICENSE    Returns 1 if the program is licensed.
     DX_SERVER_LICENSE     Returns the number of users authorized.
     DX_DATABASE_LICENSE   Returns the number of users authorized.

Related Topics

The program $DY_ROOT/bin/testlicense.