AdsMgKillUser
Disconnects a user from the server.
Syntax
UNSIGNED32 AdsMgKillUser(ADSHANDLE hMg, UNSIGNED8* pucUser,
UNSIGNED16 usOption);
Parameters
Parameter
Type
Description
hMg
ADSHANDLE
Management connection handle.
pucUser
UNSIGNED8*
User name to disconnect.
usOption
UNSIGNED16
Options (0 = default).
Return Value
AE_SUCCESS (0) on success. Error code on failure.
Description
AdsMgKillUser forces the disconnection of a user from the Advantage server. The user is disconnected immediately and all their connections and locks are released.
Example
AdsMgKillUser(hMgmt, "problem_user", 0);