def __init__(self, error_code):
        error_code &= 0xFFFFFFFF
        self.error_code = error_code
        if error_code != self.HIDP_STATUS_SUCCESS:
            if error_code in self.error_message_dict:
                raise helpers.HIDError(self.error_message_dict[error_code] % "hidP error: %s")
            else:
                raise helpers.HIDError("Unknown HidP error (%s)"%hex(error_code))

#*****************
# kernel32
#
#wait for single object
dataset/ETHPy150Open rene-aguirre/pywinusb/pywinusb/hid/winapi.py/HidStatus.__init__/swapped operands of `%`