I'm looking for a working example of code that uses the RegLoadkey and RegUnloadKey APIs. I keep getting hung up on a 1314 error when I attempt to load a user ntuser.dat file. I copied the ntuser.dat file into a directory on my machine and I'm logged in as the administrator. I can load this copy of the ntuser.dat file using RegEdt32 so I don't think it's really a permissions problem. Thanks for any help anyone can give.