Login id of current user in windows2000/NT

Posted on 2004-11-03
Last Modified: 2013-11-20
How to Get the Login id of current user in windows2000/NT system using VC++ program

If possible give me a sample code.
Question by:krush_ice
    LVL 23

    Expert Comment

    by:Roshan Davis
    try GetUserName
    LVL 23

    Accepted Solution

    you can also try WNetGetUser()

    Author Comment

    thank u roshan
    i give u your points

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Motorola device cold boot 3 332
    iSeries DB2 Query 2 66
    post4 challenge 28 70
    abstract class with all non abstract mentods 6 58
    In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
    Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now