Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

getlogin in C programming

Status
Not open for further replies.

karthikj

Mechanical
May 27, 2003
40
Hi,

I am trying to get the login name of the user in C programming .After searching in web i found the Miscellaneous function getlogin() in unistd.h.I am using VC++ compiler .
This header file is not available in VC++.Please guide me how to solve this issue or tell me how to get the login information of the user.

regards,
KarthikJ
 
Replies continue below

Recommended for you

Easiest way that I know of is to use the GetUserName API call.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor