Stack Initialization

Validate User Id

lgo_ValidateUserId()

Validate a user identifier.

Syntax
#include "laygo.h"

LResult lgo_ValidateUserId
    (
        LUserId    userId
    );
userIduser id to validate
Description

lgo_ValidateUserId() checks a user id 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_ValidateUserId() can only be called after the stack has been initialized.

Return Values

If successful, lgo_ValidateUserId() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

None

Example
LResult    result;

result = lgo_ValidateUserId(userId);

if (result < 0)
{
    return (FAILURE);
}