MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system


Adds information about user registered at this server.

procedure AddUser(UserInfo: TMsgBaseUserInfo);

Call AddUser to add new user with details specified in UserInfo to the server database. AddUser searches for user with the same UserID and delete it if it is found, then insert new user. To avoid deleting of existing user you can call GetNewUserID to reserve new unique UserID identifier, then prepare UserInfo where UserInfo.UserID must be equal to the result of GetNewUserID calling and call AddUser to finalize addition of new unique user.
Also you can determine if the user is already exist by calling IsUserExisting, but in this case you have no guarantee that anybody takes this UserID first.

Note:Do not release the memory contained UserInfo after AddUser calling due this UserInfo structure will be used in TMsgServer.  

© AidAim Software MsgCommunicator: Delphi Messenger Sdk Instant Messaging Sdk Im Sdk