API for query, generate and verify license keys, subscriptions, activation codes, etc. More...
Functions | |
int __stdcall | SFLUC_LICENSE_DURATION (int *nLen) |
Query and retrieve the license key duration (e.g. annual, semi-annual, etc.) | |
int __stdcall | SFLUC_LICENSE_LEVEL (int *nlevel) |
Query and retrieve the license level of the active license key. | |
int __stdcall | SFLUC_MACHINEID (LPWSTR szBuffer, size_t *nLen) |
Query and retrieve the unique identifier of the local machine. | |
int __stdcall | SFLUC_LICENSE_KEY (LPWSTR szBuffer, size_t *nLen) |
Query and retrieve the current license key. | |
int __stdcall | SFLUC_LICENSE_KEY_EXPIRY (unsigned long *expiry) |
Query and retrieve the expiration date of the curent license key. | |
int __stdcall | SFLUC_ACTIVATION_CODE (LPWSTR szBuffer, size_t *nLen) |
Query and retrieve the activation code of the curent license key. | |
int __stdcall | SFLUC_LICENSE_STATUS (void) |
Query and retrieve the activation status of curent license key. | |
int __stdcall | SFLUC_LICENSE_EXPIRY (LPCWSTR szKey, LPCWSTR szActivationCode, unsigned long *expiry) |
Query and retrieve the expiration date of a given license key and activation code. | |
int __stdcall | SFLUC_CHECK_KEYCODE (LPCWSTR PDKey, LPCWSTR szKey, LPCWSTR szActCode, ULONG *ulExpiry, int *nLevel) |
Query and retrieve the expiration date and license level of a license key and activation code. | |
int __stdcall | SFLUC_UPDATEVERSION (LPCWSTR szLicenseKey, LPCWSTR szFileVersion, LPWSTR updateVersion, size_t *pVerSize, LPWSTR downloadURL, size_t *pURLSize) |
Query and retrieve the latest version available. | |
int __stdcall | SFLUC_SERVICEDATE (LPCWSTR szLicenseKey, LPLONG serviceDate) |
Query and retrieve the service date for a given license. | |
int __stdcall | SFLUC_ACTIVATE_LICENSE (LPCWSTR szLicenseKey, LPCWSTR szEmail, LPCWSTR szProdCode, LPWSTR szActivationCode, size_t *puSize) |
Query and retrieve the recent activation code for a given license. | |
int __stdcall | SFLUC_DEACTIVATE_LICENSE (LPCWSTR szLicenseKey) |
Deactiveate the license key on the given machine (i.e., user's account) | |
int __stdcall | SFLUC_LOOKUP_LICENSE (LPCWSTR szEmail, LPCWSTR szProdCode, LPWSTR szLicenseKey, size_t *puSize) |
Lookup license key for a given email address. | |
int __stdcall | SFLUC_UPDATE_LICENSE (LPCWSTR szLicenseKey, LPCWSTR szFirstName, LPCWSTR szLastName, LPCWSTR szEmail, LPCWSTR szCompany) |
Update the license key information: Name, Company and E-Mail. | |
int __stdcall | SFLUC_REQ_TRIAL_LICENSE (LPCWSTR szFirstName, LPCWSTR szLastName, LPCWSTR szEmail, LPCWSTR szCompany, LPCWSTR szPhoneNo, LPCWSTR szProdCode) |
Request a 14-day trial license key. | |
API for query, generate and verify license keys, subscriptions, activation codes, etc.
int __stdcall SFLUC_ACTIVATE_LICENSE | ( | LPCWSTR | szLicenseKey, |
LPCWSTR | szEmail, | ||
LPCWSTR | szProdCode, | ||
LPWSTR | szActivationCode, | ||
size_t * | puSize ) |
[in] | szLicenseKey | (Required) Is the License key |
[in] | szEmail | (Required) Is the E-Mail address associated with the license key |
[in] | szProdCode | (Required) Is the product code (e.g. 3223-200) |
[out] | szActivationCode | Is the activation code |
[in,out] | puSize | A pointer to a variable that specifies the size of the buffer pointed to by the szActivationCode parameter, in bytes. When the function returns, this variable contains the size of the data copied to szActivationCode . |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_ACTIVATION_CODE | ( | LPWSTR | szBuffer, |
size_t * | nLen ) |
[out] | szBuffer | The buffer that will receive the activation code |
[in,out] | nLen | A pointer to a variable that specifies the size of the buffer pointed to by the szBuffer parameter, in bytes. When the function returns, this variable contains the size of the data copied to szBuffer . |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_CHECK_KEYCODE | ( | LPCWSTR | PDKey, |
LPCWSTR | szKey, | ||
LPCWSTR | szActCode, | ||
ULONG * | ulExpiry, | ||
int * | nLevel ) |
[in] | PDKey | (Required) Is the Product key (i.e. 31223-200-162) |
[in] | szKey | (Required) Is the License key |
[in] | szActCode | (Required) Is the Activation code. |
[out] | ulExpiry | Is the expiration date expressed as number of days since January 1st, 1970 |
[out] | nLevel | Is the Effective license level: 1=Limited, 2=Full/Pro |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
a general function for bootstrapping expiry date and nlevel from a key/code pair
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_DEACTIVATE_LICENSE | ( | LPCWSTR | szLicenseKey | ) |
[in] | szLicenseKey | (Required) is the NumXL License key string (e.g., 79F7-...) |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_LICENSE_DURATION | ( | int * | nLen | ) |
[out] | nLen | Is the license duration (1=trial, 2=perpetual, 3=annual, 4=semi-annual) |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_LICENSE_EXPIRY | ( | LPCWSTR | szKey, |
LPCWSTR | szActivationCode, | ||
unsigned long * | expiry ) |
[in] | szKey | (Required) Is the license key |
[in] | szActivationCode | (Required) Is the activation code for the given license key. |
[out] | expiry | Is the expiration date expressed as number of days since January 1st, 1970 |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
int __stdcall SFLUC_LICENSE_KEY | ( | LPWSTR | szBuffer, |
size_t * | nLen ) |
[out] | szBuffer | Is the output buffer that will receive the License key |
[in,out] | nLen | A pointer to a variable that specifies the size of the buffer pointed to by the szBuffer parameter, in bytes. When the function returns, this variable contains the size of the data copied to szBuffer . |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_LICENSE_KEY_EXPIRY | ( | unsigned long * | expiry | ) |
[out] | expiry | Is the expiration date of the active license expressed as number of days since January 1st, 1970 |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_LICENSE_LEVEL | ( | int * | nlevel | ) |
[out] | nlevel | A pointer to a variable that, upon the function returns, contains the active license level (1=limited, 2=Pro). |
NDK_SUCCESS | The function succeeds. |
NDK_UNINITIALIZED | The license system has not been initalized yet. |
NDK_INVALID_ARG | The nlevel argument is NULL. |
NDK_INACTIVE_LICENSE_KEY | The selected license key in not activated. |
NDK_INVALID_LICENSE_KEY | The selected license key is invalid. |
NDK_EXPIRED_LICENSE_KEY | The current date is after the expiry date of the activated license key. |
NDK_FAILED | The function fails. |
nlevel
is NULL, the function returns NDK_INVALID_ARG.Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_LICENSE_STATUS | ( | void | ) |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_LOOKUP_LICENSE | ( | LPCWSTR | szEmail, |
LPCWSTR | szProdCode, | ||
LPWSTR | szLicenseKey, | ||
size_t * | puSize ) |
[in] | szEmail | (Required) is the email address associated with the desired license key. |
[in] | szProdCode | (Required) is the product code that license key can be used with |
[out] | szLicenseKey | (Optional) is a buffer to hold the return license key |
[in,out] | puSize | A pointer to a variable that specifies the size of the buffer pointed to by the szLicenseKey parameter, in bytes. When the function returns, this variable contains the size of the data copied to szLicenseKey . |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_MACHINEID | ( | LPWSTR | szBuffer, |
size_t * | nLen ) |
[out] | szBuffer | A pointer to a buffer that receives the value's data. This parameter can be NULL if the data is not required. |
[in,out] | nLen | A pointer to a variable that specifies the size of the buffer pointed to by the szBuffer parameter, in bytes. When the function returns, this variable contains the size of the data copied to szBuffer . |
NDK_SUCCESS | The function succeeds. |
NDK_LENGTH_ERROR | The szBuffer buffer is too small to receive the data. |
NDK_INVALID_ARG | The nLen argument is NULL. |
NDK_FAILED | The function fails. |
szBuffer
is NULL, and nLen
is non-NULL, the function returns NDK_SUCCESS and stores the size of the data, in bytes, in the variable pointed to by nLen
. This enables an application to determine the best way to allocate a buffer for the value's data.szBuffer
buffer is too small to receive the data, the function returns NDK_LENGTH_ERROR.nLen
is NULL, the function returns NDK_INVALID_ARG. Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_REQ_TRIAL_LICENSE | ( | LPCWSTR | szFirstName, |
LPCWSTR | szLastName, | ||
LPCWSTR | szEmail, | ||
LPCWSTR | szCompany, | ||
LPCWSTR | szPhoneNo, | ||
LPCWSTR | szProdCode ) |
[in] | szFirstName | (Required) is the customer first name |
[in] | szLastName | (Required) is the customer last name |
[in] | szEmail | (Required) is the new email address to associat the license key with. |
[in] | szCompany | (Optional) is the company name or organization the customer belong to |
[in] | szPhoneNo | (Optional) is the phone number. |
[in] | szProdCode | (Required) is the product code that license key can be used with. |
NDK_SUCCESS | Operation successful |
Warning | or Error code |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_SERVICEDATE | ( | LPCWSTR | szLicenseKey, |
LPLONG | serviceDate ) |
[in] | szLicenseKey | (Required) Is the License key |
[out] | serviceDate | Is the serial date number of the service/support expiry date |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_UPDATE_LICENSE | ( | LPCWSTR | szLicenseKey, |
LPCWSTR | szFirstName, | ||
LPCWSTR | szLastName, | ||
LPCWSTR | szEmail, | ||
LPCWSTR | szCompany ) |
[in] | szLicenseKey | (Required) is the license key to update |
[in] | szFirstName | (Required) is the customer first name |
[in] | szLastName | (Required) is the customer last name |
[in] | szEmail | (Required) is the new email address to associat the license key with. |
[in] | szCompany | (Optional) is the company name or organization the customer belong to |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
int __stdcall SFLUC_UPDATEVERSION | ( | LPCWSTR | szLicenseKey, |
LPCWSTR | szFileVersion, | ||
LPWSTR | updateVersion, | ||
size_t * | pVerSize, | ||
LPWSTR | downloadURL, | ||
size_t * | pURLSize ) |
[in] | szLicenseKey | (Required) Is the License key |
[in] | szFileVersion | (Required) is the long file version (1.XX.XXXX.X) |
[out] | updateVersion | Is the available most recent version available |
[in,out] | pVerSize | A pointer to a variable that specifies the size of the buffer pointed to by the updateVersion parameter, in bytes. When the function returns, this variable contains the size of the data copied to updateVersion . |
[out] | downloadURL | is the download URL version |
[in,out] | pURLSize | A pointer to a variable that specifies the size of the buffer pointed to by the downloadURL parameter, in bytes. When the function returns, this variable contains the size of the data copied to downloadURL . |
NDK_SUCCESS | success |
NDK_FAILED | unknown error |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |