Posted: Sun Jan 26, 2003 8:35 pm
Restored from previous forum. Originally posted by CONVERT.
Well, it is more an API question than a PB question...
When a client Windows is loging in a MS network with a domain name, it executes a user.bat from \\BDC_server\NETLOGON.
This user.bat executes a .EXE made with PB. In this .EXE there is a Getusername call.
If the client PC is a Win 9x, it does not work. If the client is XP or NT, it works fine.
And it works fine when executed outside (or after) the login script, in Win 9x, and of course XP and NT.
It seems that during the login script, Windows 9x has not the time to record the username in the appropriate place.
May be is it better looking for the user name in HKEY_LOCAL_MACHINE\Network\Logon\username ?
Any idea?
Thanks
Jean.
Well, it is more an API question than a PB question...
When a client Windows is loging in a MS network with a domain name, it executes a user.bat from \\BDC_server\NETLOGON.
This user.bat executes a .EXE made with PB. In this .EXE there is a Getusername call.
If the client PC is a Win 9x, it does not work. If the client is XP or NT, it works fine.
And it works fine when executed outside (or after) the login script, in Win 9x, and of course XP and NT.
It seems that during the login script, Windows 9x has not the time to record the username in the appropriate place.
May be is it better looking for the user name in HKEY_LOCAL_MACHINE\Network\Logon\username ?
Any idea?
Thanks
Jean.