This will seem like a frivolous question to some but the completion of a project is hanging on a workable resolution and I can't see the answer (if it were a snake it probably would have chewed off my leg by now - but I still can't see it).<br>
How does one obtain the name of the current user without relying on a database connection? My background app needs to know the name of the user within seconds of a new login and it must work with 100% reliability on all Win9x machines. I'm not worried about users bypassing the Windows login by hitting ESC at the password dialog (my app gives the user only two options: either login with a valid password or turn the computer off).<br>
The API doesn't appear to provide a way to get the "Windows" user name (then again, the API is a snake that has already had its fill of my leg, on numerous occasions).<br>
<br>
Could somebody please pull this reptile off of my foot before it takes another gulp?<br>
<br>
Any suggestions will earn my eternal gratitude.<br>
How does one obtain the name of the current user without relying on a database connection? My background app needs to know the name of the user within seconds of a new login and it must work with 100% reliability on all Win9x machines. I'm not worried about users bypassing the Windows login by hitting ESC at the password dialog (my app gives the user only two options: either login with a valid password or turn the computer off).<br>
The API doesn't appear to provide a way to get the "Windows" user name (then again, the API is a snake that has already had its fill of my leg, on numerous occasions).<br>
<br>
Could somebody please pull this reptile off of my foot before it takes another gulp?<br>
<br>
Any suggestions will earn my eternal gratitude.<br>