windows-nt/Source/XPSP1/NT/net/tcpip/tpipv6/ipv6mon/map.h

57 lines
1.2 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//=============================================================================
// 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
);