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

  1. //=============================================================================
  2. // Copyright (c) Microsoft Corporation
  3. // Abstract:
  4. // This module implements ifindex-name conversion functions.
  5. //=============================================================================
  6. extern HANDLE g_hMprConfig;
  7. DWORD
  8. Connect();
  9. VOID
  10. Disconnect();
  11. DWORD
  12. MapFriendlyNameToIpv6IfIndex(
  13. IN PWCHAR pwszFriendlyName,
  14. IN PIP_ADAPTER_ADDRESSES pAdapterInfo,
  15. OUT DWORD *pdwIfIndex
  16. );
  17. DWORD
  18. MapIpv6IfIndexToFriendlyName(
  19. IN DWORD dwIfIndex,
  20. IN IP_ADAPTER_ADDRESSES *pAdapterInfo,
  21. OUT PWCHAR *ppwszFriendlyName
  22. );
  23. PIP_ADAPTER_ADDRESSES
  24. MapIfIndexToAdapter(
  25. IN DWORD dwFamily,
  26. IN DWORD dwIfIndex,
  27. IN PIP_ADAPTER_ADDRESSES pAdapterInfo
  28. );
  29. DWORD
  30. MapGuidToFriendlyName(
  31. IN PWCHAR pwszMachine,
  32. IN GUID *pGuid,
  33. IN PIP_ADAPTER_ADDRESSES pAdapterInfo,
  34. OUT PWCHAR *ppwszFriendlyName
  35. );
  36. DWORD
  37. MapFriendlyNameToAdapterName(
  38. IN PWCHAR pwszMachine,
  39. IN PWCHAR pwszFriendlyName,
  40. IN PIP_ADAPTER_ADDRESSES pAdapterInfo,
  41. OUT LPSTR *AdapterName
  42. );
  43. VOID
  44. ConvertGuidToStringA(
  45. IN GUID *pGuid,
  46. OUT PCHAR pszString
  47. );