win_lm_cleanup
Release all licenses for a process
WSupported on Windows
|
|
|
NSupported in Synergy .NET
|
void WINAPI win_lm_cleanup()
Discussion
The win_lm_cleanup routine releases (logs out) all licenses that are in use by a process. You do not have to specify a token as you do with win_lm_logout.
We recommend you create a ProcessExit handler for your current AppDomain with a call to win_lm_cleanup to ensure that licenses are released when the process exits, regardless of how the user exits the application, as well as when there is an exception.
Examples
The example below shows how to use a ProcessExit handler for the current AppDomain to call win_lm_cleanup.
AppDomain.CurrentDomain.ProcessExit += MyProcessExit; void MyProcessExit(object sender, EventArgs e) { win_lm_cleanup(); }