def METHOD_NAME(mod_name, func_name):
    """
    Prepare the parameters for patch_func to patch indicated function.
    """
    repl_prefix = 'msvc9_' if 'msvc9' in mod_name else 'msvc14_'
    repl_name = repl_prefix + func_name.lstrip('_')
    repl = getattr(msvc, repl_name)
    mod = import_module(mod_name)
    if not hasattr(mod, func_name):
        raise ImportError(func_name)
    return repl, mod, func_name