win_lm_stat
WTSupported in traditional Synergy on Windows
|
WNSupported in Synergy .NET on Windows
|
|
|
int WINAPI win_lm_stat(char *producer, char *app_code, int *usage, int *syserr)
Arguments
producer
The producer code for your company. This is a null-terminated 8-bit ANSI string. (This code was assigned to your company by Synergex when you requested the License Key Generator.)
app_code
The code that you created to refer to the application or application component. This is a null-terminated 8-bit ANSI string and can be up to six characters long.
usage
An int32 pointer returned with the current number of users.
syserr
An int32 pointer returned with a system error code if the call fails.
Discussion
The usage argument returns the current license usage for the specified application code. This value can be used to prepare a report of license usage, as required for xfServerPlus customers by the PLA.
The win_lm_stat function returns a status value. The most common values are listed below; see Licensing Toolkit error messages for additional values that can be returned.
0 = Operation was successful.
1 = Product has not been installed.
These status values are for your information only; they have no effect on your application. You must write code to handle the returned status.
If the call fails, syserr may be loaded with a system error number.
When calling win_lm_stat from a Synergy application, use the Synergy DLL API with the DLL_TYPE_WINAPI convention.
Examples
See lmstattest.c in Licensing_TK_Examples.zip, available from Synergy CodeExchange in the Resource Center on the Synergex website.