WR_DeactivateInstallation

This function is used to deactivate an Installation that was previously activated online through SOLO Server (using the XML Activation Service). A successful deactivation will immediately deactivate the local license file and also increment the Activations Left count on the License ID in SOLO Server. See Deactivating Licenses for more information.

The last parameter of the function is a handle to the application window, but you may set this parameter to 0 if you do not want the dialogs to run as modal dialogs attached to your application window.

Syntax

Visual Basic
Declare Function WR_DeactivateInstallation(ByVal flags As Long, ByVal hWnd As Long) As Long
C/C++
LONG WR_DeactivateInstallation(LONG flags, HWND hWnd);

Arguments

flags
NO_FLAGS (0)
Attempts to silently deactivate the Installation.
IP_SHOW_PROMPTS (1)
Display confirmation dialog and success/failure messages to the user.
hWnd
A handle to the application's window. Use zero (0) or NULL to omit.

Returns

If the call fails, any of the API Error Codes may be returned.

-2
The application has not been wrapped.
-1
The API is not available. Please check your wizard settings. See the Testing section in the API Setup topic for more information.
0
Deactivation failed, or was canceled by the user.
1
The application was deactivated successfully.