CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 1999
    Posts
    30

    Get login user name 95/NT

    Is there a way to get the login name of the user that is currently logon to the PC that's running my application.


    Thanx


  2. #2
    Join Date
    May 1999
    Posts
    116

    Re: Get login user name 95/NT

    GetUserName() ?


  3. #3
    Join Date
    May 1999
    Posts
    30

    Re: Get login user name 95/NT

    Thnak you,

    I feel stupid.. but thanx.


  4. #4
    Join Date
    May 1999
    Posts
    4

    Re: Get full name of this login name from PDC (95/NT)

    GetUserName() is only retrieve the logon name, and how to get the full name of this account that exists in Primary Domain Control(PDC)?

    **************************
    * Cao Jiling *
    **************************

  5. #5
    Join Date
    May 1999
    Posts
    8

    Re: Get login user name 95/NT

    // some useful functinos to lookup
    GetUserName(); // Get Loged on Username
    NetGetDCName(..); // Get DomainController

    NetUserGetInfo(...); // Get Additional info(shares/Full name etc..)


    NetApiBufferFree(...); // use to free the buffer used previously

    // if you have msdn library these functions referes to the net access functions


    Happy searching and good luck /Thomas Rizos



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured