Additional Topics > External Development Guide > IDLInternals - Miscellaneous > User Information - IDL_GetUserInfo()

# User Information - IDL_GetUserInfo()

Use the IDL_GetUserInfo() function to get information about the current session. This is the sort of information that can be used in the header of files produced by graphics drivers. It is used, for example, by the PostScript driver:

void IDL_GetUserInfo(IDL_USER_INFO *user_info)

where the IDL_USER_INFO struct is defined as:

typedef struct {

char *logname; /* User’s login name */

char *homedir; /* User’s home directory */

char *pid; /* The process ID */

char host[64]; /* Machine name */

char wd[IDL_MAXPATH+1]; /* Working Directory */

char date[25]; /* Current System Time */

} IDL_USER_INFO;