Archive: Existing registry keys: 0,1,2,...,n. How to add n+1?


Existing registry keys: 0,1,2,...,n. How to add n+1?
In the key

HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0

n numbered subkeys exists, example:
...\Scripts\Logoff\0
...\Scripts\Logoff\1
...\Scripts\Logoff\2
[...]
...\Scripts\Logoff\n

They are always fully numbered from 0 to the last value.

I want to add another subkey to this key named [n+1]. Any suggestions on how to do this (have searched the forum)?

Thanks in advance!

Use EnumRegKey or EnumRegValue.