//============================================================================= // Copyright (c) Microsoft Corporation // Abstract: // This module implements ifindex-name conversion functions. //============================================================================= extern HANDLE g_hMprConfig; DWORD Connect(); VOID Disconnect(); DWORD MapFriendlyNameToIpv6IfIndex( IN PWCHAR pwszFriendlyName, IN PIP_ADAPTER_ADDRESSES pAdapterInfo, OUT DWORD *pdwIfIndex ); DWORD MapIpv6IfIndexToFriendlyName( IN DWORD dwIfIndex, IN IP_ADAPTER_ADDRESSES *pAdapterInfo, OUT PWCHAR *ppwszFriendlyName ); PIP_ADAPTER_ADDRESSES MapIfIndexToAdapter( IN DWORD dwFamily, IN DWORD dwIfIndex, IN PIP_ADAPTER_ADDRESSES pAdapterInfo ); DWORD MapGuidToFriendlyName( IN PWCHAR pwszMachine, IN GUID *pGuid, IN PIP_ADAPTER_ADDRESSES pAdapterInfo, OUT PWCHAR *ppwszFriendlyName ); DWORD MapFriendlyNameToAdapterName( IN PWCHAR pwszMachine, IN PWCHAR pwszFriendlyName, IN PIP_ADAPTER_ADDRESSES pAdapterInfo, OUT LPSTR *AdapterName ); VOID ConvertGuidToStringA( IN GUID *pGuid, OUT PCHAR pszString );