code: def _check_bool(result, func, args):  # pylint: disable=unused-argument
      
  
      if not result:
          raise ctypes.WinError(ctypes.get_last_error())
      return args
docs: Used as an error handler for Windows calls
      Gets last error if call is not successful