Vian Zhou

I used RegOpenKeyEx to open Software\Microsoft\Windows\CurrentVersion\Uninstall, as below:

long rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE,
REGSTR_PATH_UNINSTALL,

0,
KEY_READ|KEY_WRITE,
&hChildKey);

I got an error on some machines, the error No. is 1813 ERROR_RESOURCE_TYPE_NOT_FOUND (The specified resource type cannot be found in the image file.)

But it's no problem on the other machines, the registry entry is opened successfully.

That's weird, the Operating system are the same, it's XP Pro. with sp2.

Does anyone has any idea what's going on And any suggestion

Thanks in advance!

~Vian



Re: Windows SDK RegOpenKeyEx error that image not found

Vian Zhou

The problem was found in India. It's because the user is not an administrative privileged user, he/she does not have permission to write information in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall of the registry entry.