locked
Prioritizing Connection on an adapter basis RRS feed

  • Question

  • There is a need to make certain programs use only connections on wired basis and not over wifi.  Can I do something like that with WFP?

    Wednesday, April 29, 2009 4:16 PM

Answers

  • Yes. WFP indicates interface LUID/Index to filter or callouts. Using iphlpapi functions, you can discover whether a particular LUID/Index belongs to a LAN or WLAN.

    For example, for outbound connects, the LUID and Index are indicated from these fields --

       FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_LOCAL_INTERFACE
       FWPS_FIELD_ALE_AUTH_CONNECT_V4_INTERFACE_INDEX

    Hope this helps,
    Biao.W.
    Thursday, May 7, 2009 7:31 AM