Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
1.2 KiB

//=============================================================================
// 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
);