Release all licenses for a process

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows



void WINAPI win_lm_cleanup()

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 this routine 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.

The example below shows how to use a ProcessExit handler for the current AppDomain to call the win_lm_cleanup routine.

AppDomain.CurrentDomain.ProcessExit += MyProcessExit; 
void MyProcessExit(object sender, EventArgs e)