W95USER(3) libwin Reference W95USER(3) NAME w95user - libwin user information functions SYNOPSIS #include <libwin.h> char *w95_getlogon (void); char *w95_getprofilepath (char *user); DESCRIPTION The reason these functions only work on Windows '95 is that they use the registry access functions. w95_getlogon() returns the name of the user currently logged on to Windows. w95_getprofilepath() returns the path to the specified user's profile directory, e.g. C:/Windows/Profiles/Bob. This could be used as a home directory. RETURN VALUES w95_getlogon() and w95_getprofilepath() return NULL if they fail. SEE ALSO libwin(7), w95reg(3) BUGS These functions do not work on Windows NT, 2000 or XP. libwin 0.1.5 22 September 2002 1
Page created on Sun Sep 29 21:12:26 2002 by m2h.pl, a man page to HTML convertor.
m2h.pl Version 1.3.2, Copyright 1997-2002 by Richard Dawe <webmaster@phekda.org>