RPC Server Support
lgo_RpcValidateUserId()
Validate a user identifier on a particular server.
#include "laygo.h"
LResult lgo_RpcValidateUserId
(
LServerId serverId,
LUserId userId
);
| serverId | server to validate on |
| userId | user id to validate |
lgo_RpcValidateUserId() checks a user id on a particular server against an internally stored value. User ids are 32-bit values supplied by Advanced Relay Corporation. If you have any questions about user ids, contact technical support at Advanced Relay Corporation.
lgo_RpcValidateUserId() can only be called after the stack has been initialized.
If successful, lgo_RpcValidateUserId() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
LServerId serverId
if ((serverId = lgo_RpcConnectServer(0)) >= 0)
{
LResult result = lgo_RpcValidateUserId(serverId, userId);
lgo_RpcDisconnectServer(serverId);
return(result);
}