I am writting a text based C++ program in Microsoft Visual C++ for Win 98/NT, and need the UserName and directory path. So far, all I have been able to find are functions that work with dialog boxes. Are there any system calls I can use to get the UserName and Directory in a text based program?