def nvmlDeviceGetInforomVersion(handle, infoRomObject):
    r"""
    /**
     * Retrieves the version information for the device's infoROM object.
     *
     * For all products with an inforom.
     *
     * Fermi and higher parts have non-volatile on-board memory for persisting device info, such as aggregate
     * ECC counts. The version of the data structures in this memory may change from time to time. It will not
     * exceed 16 characters in length (including the NULL terminator).
     * See \ref nvmlConstants::NVML_DEVICE_INFOROM_VERSION_BUFFER_SIZE.
     *
     * See \ref nvmlInforomObject_t for details on the available infoROM objects.
     *
     * @param device                               The identifier of the target device
     * @param object                               The target infoROM object
     * @param version                              Reference in which to return the infoROM version
     * @param length                               The maximum allowed length of the string returned in \a version
     *
     * @return
     *         - \ref NVML_SUCCESS                 if \a version has been set
     *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
     *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a version is NULL
     *         - \ref NVML_ERROR_INSUFFICIENT_SIZE if \a length is too small
     *         - \ref NVML_ERROR_NOT_SUPPORTED     if the device does not have an infoROM
     *         - \ref NVML_ERROR_GPU_IS_LOST       if the target GPU has fallen off the bus or is otherwise inaccessible
     *         - \ref NVML_ERROR_UNKNOWN           on any unexpected error
     *
     * @see nvmlDeviceGetInforomImageVersion
     */
    nvmlReturn_t DECLDIR nvmlDeviceGetInforomVersion
    """
    c_version = create_string_buffer(NVML_DEVICE_INFOROM_VERSION_BUFFER_SIZE)
    fn = _nvmlGetFunctionPointer("nvmlDeviceGetInforomVersion")
    ret = fn(handle, _nvmlInforomObject_t(infoRomObject),
	         c_version, c_uint(NVML_DEVICE_INFOROM_VERSION_BUFFER_SIZE))
    _nvmlCheckReturn(ret)
    return bytes_to_str(c_version.value)