>>18
普通に RegCreateKeyEx が使えますか?

以前試したら、

REGSAM samDesired, // desired security access
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
// address of key security structure

この辺りの関係でうまく逝かなかった記憶があるんで。