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.

49 lines
1.2 KiB

  1. /*
  2. File NicTable.h
  3. Defines a nic-renaming scheme that allows adaptif to
  4. advertise whatever nic id it chooses to its clients while
  5. maintaining the list of actual nic id's internally.
  6. This functionality was needed in order to Pnp enable the
  7. ipx router. When an adapter is deleted, the stack renumbers
  8. the nicid's so that it maintains a contiguous block of ids
  9. internally. Rather that cause the clients to adptif to
  10. match the stack's renumbering schemes, we handle this
  11. transparently in adptif.
  12. Author: Paul Mayfield, 12/11/97
  13. */
  14. #ifndef __adptif_nictable_h
  15. #define __adptif_nictable_h
  16. #define NIC_MAP_INVALID_NICID 0xffff
  17. // Definitions to make this easy on adptif
  18. DWORD NicMapInitialize();
  19. DWORD NicMapCleanup();
  20. USHORT NicMapGetVirtualNicId(USHORT usPhysId);
  21. USHORT NicMapGetPhysicalNicId(USHORT usVirtId);
  22. DWORD NicMapGetMaxNicId();
  23. IPX_NIC_INFO * NicMapGetNicInfo (USHORT usNicId);
  24. DWORD NicMapGetNicCount();
  25. DWORD NicMapAdd(IPX_NIC_INFO * pNic);
  26. DWORD NicMapDel(IPX_NIC_INFO * pNic);
  27. DWORD NicMapReconfigure(IPX_NIC_INFO * pNic);
  28. DWORD NicMapRenumber(DWORD dwOpCode, USHORT usThreshold);
  29. BOOL NicMapIsEmpty ();
  30. #endif