i'm trying to store value in a binary key on the left portion where hex values are written.

I'm able to store values in the binary key through REG_BINARY but it stores the value on the right portion where ASCII values are written.

I tried REG_SZ but that changed the key to string value.

How can I store the value on the left portion in binary key?