http://www.perlmonks.org?node_id=486651


in reply to Finding Hidden Keys in Your Windows Registry

Note that there can also be registry keys with \0 embedded in them which makes it impossible to find using the Win32 API (but can be found via the native api). Good information, as well as a demonstration program, here:
http://www.sysinternals.com/Information/TipsAndTrivia.html#HiddenKeys