Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
May 27, 2003
Messages
40
Location
IN
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
 
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

Back
Top