API for Initializing, configuring, and shutdown the licensing facility.
More...
|
int __stdcall | SFLUC_INIT (LPCWSTR argPRODKey, LPCWSTR argLicenseKey, LPCWSTR argActivationCode, unsigned *pClientToken) |
| initialize the SFLUC Library
|
|
int __stdcall | SFLUC_SHUTDOWN (unsigned int uLUCToken) |
| shutdown and release all resources used by SFLUC DLL
|
|
int __stdcall | SFLUC_CHECK_LICENSE (void) |
| Examine the license key and activation code in the current system.
|
|
int __stdcall | SFLUC_SERVICE_PING (void) |
| heartbeat ping to the remote license API
|
|
The NumXL SDK logging subsystem definie a logging level to determine whether a message is written to the log file or not. The numeric integer value of the logging level is represented by the value of one of those macros.
◆ SFLUC_CHECK_LICENSE()
int __stdcall SFLUC_CHECK_LICENSE |
( |
void | | ) |
|
- Parameters
- None.
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- See also
- SFLUC_INIT
Examine the status of the licensing system.
- Requirements
| |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
- Examples
- luc_init.cpp.
◆ SFLUC_INIT()
int __stdcall SFLUC_INIT |
( |
LPCWSTR | argPRODKey, |
|
|
LPCWSTR | argLicenseKey, |
|
|
LPCWSTR | argActivationCode, |
|
|
unsigned * | pClientToken ) |
- Parameters
-
[in] | argPRODKey | (Required) Is the Product key (e.g., 31223-200-169 |
[in] | argLicenseKey | (Required) Is the NumXL SDK License key (e.g., 79F7-C8-A9-XX-XXXX) |
[in] | argActivationCode | (Required) Is the hexadecimal string generated during the license activation on the host machine. |
[out] | pClientToken | Is a pointer to hold integer identifier (required to call SFLUC_Shutdown) |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- See also
- SFLUC_SHUTDOWN
The client application Initialize the sdk licensing subsystem, by providing the license key and activation code, and thus, unlock the SDK functions.
- A sample code
20 unsigned uLUCToken=unsigned(-1);
21 std::wstring szProdKey(L"31223-200-169");
22 std::wstring szLicenseKey(L"79F7-C8-A9-01-1234");
23 std::wstring szActivationCode(L"2c07d642fe1ef089e5517d35e15f186814e17fb80b25cd950e77ade2e63c82c65d94ca639a77475d11981fd0a06e3ece730ef09c53c1f2da6d89d9a1d453d5e3678e50786a42101f194ffd543c2b72b55576fa52796acfd42ea715e132abddbc0877a5d0ba9e071c5639d1cb9567d49c8019ef86549321c577193f0cd6ecba852013730ccda7f9d3b25dd6b10ffca6628835c52f4c4775d3cc295d814b542abe370abac97a2b71c5949736d7c007442b956deac50bdcff423e4b2304e7153fffc61d5a15361ada3444e67075f09f15a4eefaf1d6710d9e4e44b6adbf175caeb3446c64ead56333c8c0df6a487b549ec2b9bf5d733edbc062ce874986caf63756");
24 nRetCode =
SFLUC_INIT( szProdKey.c_str(), szLicenseKey.c_str(),szActivationCode.c_str(), &uLUCToken);
26 std::wcout << L" SUCCESS - License system is initialized" << std::endl;
- Requirements
| |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
- Examples
- luc_init.cpp.
◆ SFLUC_SERVICE_PING()
int __stdcall SFLUC_SERVICE_PING |
( |
void | | ) |
|
- Parameters
- None.
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- See also
- SFLUC_LOOKUP_LICENSE
- Requirements
| |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
◆ SFLUC_SHUTDOWN()
int __stdcall SFLUC_SHUTDOWN |
( |
unsigned int | uLUCToken | ) |
|
- Parameters
-
[in] | uLUCToken | (Required) Is the licensing system token id (acquired during initialization). |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- See also
- SFLUC_INIT
The client application calls this function during its shutdown to free any resources held by licensing subsystem
- A sample code
-
- Requirements
| |
Target Platform | Windows |
Header | SFLUC.h (include Windows.h) |
Library | SFLUC.lib |
DLL | SFLUC.dll |
- Examples
- luc_init.cpp.