 |
if_nametoindex ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Converts the ANSI interface name for a network interface to the local index for the interface. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
NET_IFINDEX WINAPI if_nametoindex(
__in PCSTR InterfaceName
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER if_nametoindex IN Iphlpapi;
STRING InterfaceName
|
 |
 |
 |
| Parameters: |
 |
InterfaceName
A pointer to a NULL-terminated ANSI string containing the interface name.
|
 |
 |
| Return value: |
 |
| On success, if_nametoindex returns the local interface index. On failure, zero is returned. |
 |
 |
| Usage: |
 |
? if_nametoindex("ppp_1")
|
 |
 |
| My comment: |
 |
Minimum OS: Vista.
See also: if_indextoname, GetNumberOfInterfaces, GetIfEntry |
 |
 |
| Word Index links for the if_nametoindex : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-01-08 10:53:08 | | Modified: | 2010-05-19 22:14:32 | Visited in last 7 days: 15 |