How long before?
Use System Restore if you have a nerw windows.
Start, Programs, Accessories, System Tools, System Restore.
Restore back to a date where everything worked. It will lose where programs are that you have installed since then, or settings you have changed. But it is one way of getting it back if you did something stupid
Hope this helps