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,871
  • 9
  • 33
  • 36
JFrosty
  • 57
  • 8

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
  • 39,960
  • 25
  • 91
  • 164