Hi ,
This is happening because spyware eddited the register of your computer. I had the same problem.
Everytime i logged into windows xp it logged me out right away.
I got rid of the problem by :
Booting the pc with your start disks created with windows xp *1 or Booting the pc using your windows xp cd-rom *2
*1 - at the command prompt goto c:\windows\system32\
copy userinit.exe wsaupdater.exe
now reboot your pc , you should be able to log into windows
goto start , run then type regedit
find the following registerkey :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Userinit string value should be:
C:\WINDOWS\system32\userinit.exe,
On the damaged installations it's one of these:
C:\WINDOWS\system32\wsaupdater.exe,
C:\WINDOWS\system32\userinit.exe,C:\WINDOWS\system32\wsaupdater.exe,
In this case edit the string to :
c:\windows\system32\userinit.exe,
Everything should work fine now !
Do install some good anti spyware software and do a virus check as mine was infected with a trojan as well.
*2 Boot the pc from the windows setup disk , at the setup screen press R for recovery
at the recovery console type cd system32
type copy userinit.exe wsaupdater.exe
type exit
then follow the instructions under *1 with the regedit.
Good luck
'if it looks like a duck, walks like a duck and quacks like a duck it's probably a duck'