TRegistry.SaveKey Example Please.

Would someone be able to post a small piece of example code showing
the correct use of the SaveKey function?

I have tried something like


where Reg is a valid TRegistry object, but I just end up with a file
of Zero bytes.  I know that the Key that I am using is correct,
because OpenKey('gws\ids', False) returns True.

If it makes any differenct, RootKey is assigned as HKEY_CLASSES_ROOT.

Thanks in advance.