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