haspds_UnInstall
Uninstalls the Sentinel LDK Run-time Environment.
haspds_status_t __stdcall
haspds_UnInstall
(
unsigned long RemoveMode
)
Parameters
RemoveMode |
Specifies the characteristics of the removal process |
RemoveMode Options
The following options are available.
HASPDS_PARAM_FREMOVE |
Removes legacy Run-time Environments. |
HASPDS_PARAM_KILLPROC |
Terminates the processes that are currently using the Run-time Environment so that the environment can be uninstalled or installed |
HASPDS_PARAM_VERBOSE |
Generates detailed log information in the installation log file (aksdrvsetup.log) |
HASPDS_PARAM_FSRVSTOP |
Automatically stops the "HASP Loader" and/or "HLServer" services and restarts them after the uninstall operation is complete. |
Return Values
HASPDS_STATUS_SUCCESS |
Function successfully executed |
HASPDS_STATUS_REBOOT_REQUIRED |
Reboot required to activate the function |
HASPDS_STATUS_USEFR_REQUIRED |
Legacy installations detected. Use HASPDS_PARAM_FREMOVE to delete from system. |
HASPDS_USEHINST_REQUIRED |
Drivers from legacy installations detected. Use HASPDS_PARAM_FREMOVE to delete from system. |
HASPDS_STATUS_FAILED |
Function failed to execute |
HASPDS_ERR_DELETE_FILE |
The context in which the installer is running does not provide delete rights for the file. OR The file cannot be deleted because it is in use by a third-party program. |
You can retrieve additional information about an error by calling haspds_GetLastError.
Usage Notes
You can only call this function if you are logged in with administrator privileges.