0

I want to check if a registry exists on a machine before I rename a file. The registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Mauler Group, LL\RSS-FS]

This is my function to check:

szRoot = WOW6432Node\Mauler Group, LL\RSS-FS;
if (RegDBKeyExist ( szRoot )< 0) then
MessageBox ("Error", SEVERE);
Vladimir Vagaytsev
  • 2,740
  • 9
  • 33
  • 33
JFrosty
  • 57
  • 7

1 Answers1

0

Perhaps investigate the 64-bit option here (REGDB_OPTION_WOW64_64KEY) if you need the 64-bit section of the registry. I can't really test this at the moment. Perhaps see this github.com code.


Some Links:

Stein Åsmul
  • 37,754
  • 24
  • 87
  • 158