CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: GetUserName

  1. #1
    Guest

    GetUserName

    once again. I am not able to get the username with OS win9x.
    with NT4.0/2000 it works proper.
    thanks a lot.


  2. #2
    Join Date
    May 1999
    Posts
    7

    Re: GetUserName

    I use the same code with 9x and NT4.00
    [
    char lpBuffer[256] ;
    DWORD nSize=256 ;
    GetUserName( lpBuffer, &nSize) ;
    ]
    Good luck! Stéphane C


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