Getting an Interface to a Network Direct Adapter
If you know the IP address of the Network Direct adapter that you want to use, call the OpenAdapter method. If not, you first need to determine the local IP address of the adapter that will give you the best access to the destination address. For example, you could call the GetBestInterfaceEx function to get the local address.
After getting the local IP address, call the QueryAddressList method and enumerate the IP addresses that the provider supports. If the provider supports your local IP address, call the OpenAdapter method to get an interface to the adapter.
Send comments about this topic to Microsoft
Build date: 7/2/2010