When you run RegOpenKey the returned value can be used to do other tasks.

But every time i run the function i get a different value returned.

Is this correct?