As you have discovered, the registry is the most important file in Windows. A corrupt registry can stop Windows starting.
I assume you have tried pressing F8 during start up (you say you have been in safe mode).
What you need to do is somehow go back to the "last known good version" which may be difficult if pressing F8 does not work.
If you can get a copy of a Windows XP CD you may be able to do a repair install (which install XP over the top of existing XP). But even that may not work if your registry is corrupt.