From: JohnG on
Hi,

RtlCopyMemory() works fine for me. One thing you might want to look into is
the ObjectAttribute structure. You need to allocate virtual memory for this
structure and use InitializeObjectAttributes macro. The other thing you have
to watch is that sometimes within ObjAttr you get a handle (RootDirectory)
and a relative (to the handle) registry key name. These are combined inside
ZwOpenKey() to get the absolute path.

John.