Andreas Rosenberg wrote: > > ------------------------------------------------------------------------ > > Hi, Error during compilation: userenv_main.c:181: warning: passing argument 1 of ‘GetUserNameW’ from incompatible pointer type Shouldn't that line be: res = GetUserNameW( userName, &sizeName ); -- Cheers, Paul.