Hi,
I have a tool which is made in C and uses the API GetUserName(). But we have the problem as the user says it gives incorrect username "sometimes".
When the failure occurs, the username. that is retrieved is a valid but one not belonging to the logged on user. For example the staff number retrieved is 04982479, but when a failure occurs with the same user, instead of retrieving 04982479, another (valid) username is returned.
Is there anyt other API which I can use so as that logon name can be retrieved.?
Please help,
regards,
Venu