The LMX_Admin_RemoveUser function removes a user session from the server.

Prototype

LMX_STATUS LMX_Admin_RemoveUser
(
	LMX_HANDLE LmxHandle,
	const char *szHostname,
	int nPort,
	const char *szPassword,
	const char *szUserName,
	const char *szUserHostname,
	const char *szFeatureName,
	int nVerMajor,
	int nVerMinor
);

Parameters

LmxHandle
[in/out] LM-X handle.

szHostname
[in] Hostname of the license server from which the user session is to be removed. The length of the hostname can be up to LMX_MAX_LONG_STRING_LENGTH.

nPort
[in] Port of the license server from which the user session is to be removed. Port must be within the range of 1 - 65535.

szPassword
[in] Password of the license server from which the user session is to be removed. The length of the password can be up to LMX_MAX_LONG_STRING_LENGTH. Note that LM-X uses brute force password protection to prevent brute-force attacks.

szUserName

[in] Username for which to remove active sessions from the server.

szUserHostname

[in] Hostname associated with the user session to be removed from the server.

szFeatureName

[in] Optional. Specifies a feature for which the user session is to be removed from the server. If the feature is not set, LMX_ALL_FEATURES (which means any user feature) will be passed. In this case, nVerMajor and nVerMinor should be set to LMX_ANY_VERSION.

nVerMajor, nVerMinor

[in] Optional. Specifies a feature version for which the user session is to be removed from the server. If the version is not set, both nVerMajor and nVerMinor should be set to LMX_ANY_VERSION.

Return values

On success, this function returns the status code LMX_SUCCESS.

On failure, this function returns an error code in the format described in Return codes.