Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "GetBestInterface" in [All]

iphlpapi

.
Summary
The GetBestInterface function retrieves index of the interface that has the best route to the specified IP address.
.

static extern int GetBestInterface(UInt32 DestAddr, out UInt32 BestIfIndex);

.

Declare Function GetBestInterface Lib "iphlpapi.dll" (TODO) As TODO

.

    public static extern int GetBestInterface(UInt32 destAddr, out UInt32 bestIfIndex);

.

        int result = Win32ApiCalls.GetBestInterface(ipv4AddressAsUInt32, out interfaceindex);

.
Documentation
[GetBestInterface] on MSDN

 
Access PInvoke.net directly from VS: