RPC Server Support

RPC Validate User Id

lgo_RpcValidateUserId()

Validate a user identifier on a particular server.

Syntax
#include "laygo.h"

LResult lgo_RpcValidateUserId
    (
        LServerId    serverId,
        LUserId      userId
    );
serverIdserver to validate on
userIduser id to validate
Description

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.

Return Values

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:

See Also

lgo_ValidateUserId()

Example
LServerId    serverId

if ((serverId = lgo_RpcConnectServer(0)) >= 0)
{
    LResult  result = lgo_RpcValidateUserId(serverId, userId);

    lgo_RpcDisconnectServer(serverId);

    return(result);
}