tfFSUserLogin

Jump to: navigation, search

Table of Contents >> Application Reference >> File System Interface


#include <trsocket.h>


void * tfFSUserLogin (
char * userNamePtr,
char * passwordPtr
);


Function Description

When given a username string and password string, this function returns a unique user data pointer (if password is correct, it returns a null pointer otherwise). The just allocated user data pointer points to a data structure containing information unique to the just logged in current user, such as its current working directory.


Parameters

  • userNamePtr
    Pointer to a null terminated string containing the user name.
  • passwordPtr
    Pointer to a null terminated string containing the password.


Returns

  • (void *)0
    Failure.
  • (Other)
    Pointer to a unique user data structure containing information about the given user (such as its working directory.)


Table of Contents >> Application Reference >> File System Interface