>Hello all,
>
>is there some function in C++ that helps me getting the current user from WinNT 4.0 ?
>
>thanks in Andvance
>Judith
In VB, we have this declaration that you can use from C++ if you modify data types:
Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com