Stack Initialization

Validate User Id


Validate a user identifier.

#include "laygo.h"

LResult lgo_ValidateUserId
        LUserId    userId
userIduser id to validate

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


LResult    result;

result = lgo_ValidateUserId(userId);

if (result < 0)
    return (FAILURE);