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