Are you sure the value is REG_BINARY and not REG_DWORD ?

Please ensure the TYPE is correct. If that is not the issue then let us know and we'll review it further.

Thanks