def set_tcp_entry_error_check(func_name, result, func, args):
    if result:
        if result == 317:
            raise IphlpapiError(func_name, result, "<require elevated process>".format(func_name))
        raise IphlpapiError(func_name, result)
    return args
raise IphlpapiError if result is NOT 0 -- pretty print error 317
dataset/ETHPy150Open hakril/PythonForWindows/windows/winproxy.py/set_tcp_entry_error_check