You are calling the method RegRead() on an unrecognized registry key.
This error generally occurs when using the RegRead method with an invalid registry key.
To correct this error
RegRead Method