Functions

Functions

int mdlLicense_getVarietyName (WCharP result)
 Retrieves a Unicode text string that describes any specialization of the base product. More...
 
bool mdlLicense_isAcademicProduct (void)
 Reports if an academic version of the base product is in use. More...
 
bool mdlLicense_isSerializedProduct (void)
 Reports if the base product has obtained a serial number. More...
 
bool mdlLicense_isRegisteredProduct (void)
 Reports if the base product has completed registration and obtained a license number. More...
 
void mdlLicense_getStrings (BrandInfo *theInfoStrings)
 Returns the three strings associated with licenses for Bentley products (Serial number, Name, Organization). More...
 
void mdlLicense_setPublisherMode ()
 Sets publisher mode to true. More...
 
int mdlLicense_getPublisherMode ()
 Returns the current publisher mode setting. More...
 
bool mdlLicense_isLicenseUpgradeRequired (void)
 Reports if an existing license must be upgraded to use a newer version of a product. More...
 
LicenseVariety mdlLicense_getUserType ()
 Returns the UserType in the license. More...
 

Detailed Description

Function Documentation

int mdlLicense_getPublisherMode ( )

Returns the current publisher mode setting.

Returns
The current publisher mode value, either true or false.
See also
mdlLicense_setPublisherMode
void mdlLicense_getStrings ( BrandInfo theInfoStrings)

Returns the three strings associated with licenses for Bentley products (Serial number, Name, Organization).

Serial Number will be the select server name for products using Select SERVER pooled licenses. Similarly, Name will be the current user name for products that are using pooled licenses.

Parameters
[out]theInfoStringsis a pointer to a BrandInfo structure that the strings will be copied to.
LicenseVariety mdlLicense_getUserType ( )

Returns the UserType in the license.

Possible values are the MDLLICENSE_USERTYPE_*.

Returns
One of the MDLLICENSE_USERTYPE_* manifests.
int mdlLicense_getVarietyName ( WCharP  result)

Retrieves a Unicode text string that describes any specialization of the base product.

Standard MicroStation returns the empty string. English Academic MicroStation returns the string "ACADEMIC".

Parameters
[in]resultis a pointer to memory which will receive the string.
Returns
The number of characters copied as defined by strlen(string).
bool mdlLicense_isAcademicProduct ( void  )

Reports if an academic version of the base product is in use.

Returns
true if the base product is an academic version, otherwise false is returned.
bool mdlLicense_isLicenseUpgradeRequired ( void  )

Reports if an existing license must be upgraded to use a newer version of a product.

Returns
true if the license must be upgraded, otherwise false is returned.
bool mdlLicense_isRegisteredProduct ( void  )

Reports if the base product has completed registration and obtained a license number.

Returns
true if the registration dialog has been completed by entering a valid license number, otherwise it returns false.
bool mdlLicense_isSerializedProduct ( void  )

Reports if the base product has obtained a serial number.

Returns
true if the base product has been serialized, otherwise it returns false.
void mdlLicense_setPublisherMode ( )

Sets publisher mode to true.

See also
mdlLicense_getPublisherMode

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.