Quote Originally Posted by VanGoghGaming View Post
I've finally managed to reproduce the error eventually by deleting the registry key entirely. It turns out vbNullString is not a valid comparison value for an integer!
With "Option Strict On" this would never have happened. Just kidding. CStr(APITRUE) is enough to solve the problem.