I'm betting you installed the VS 2010 Diagnostic Tool, which (apparently) doesn't work under XP, and seems to replace/corrupt the ADVAPI32.dll.
See the 'reviews' tab here: http://visualstudiogallery.msdn.microsoft.com/e8649e35-26b1-4e73-b427-c2886a0705f4/
Here's one of the reviews:
I installed it before having read that it isn't usable on XP. After deinstalling, i still got the entry point error and was still not able to debug my (C++) projects because of an NtClose error right at the start of a debug session.
I only got rid of it via a reset to a system restore point.
So you may want to figure out if/when that tool was installed (Add/Remove Programs should tell you) and roll back to a restore point from before you installed it.