How do I query the license key, activation code, and/or expiration date programmatically?

In the licensing system, there are several functions that does just that: SFLUC_LICENSE_KEY, SFLUC_LICENSE_EXPIRY, etc.

For more details and/or examples, please refer to the “Licensing” section in the reference manual.