Leaked source code of windows server 2003
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.

66 lines
1.7 KiB

  1. #define ALL_FIELDS_SPECIFIED 0x00
  2. #define PREF_NOT_SPECIFIED 0x01
  3. #define METRIC_NOT_SPECIFIED 0x02
  4. #define VIEW_NOT_SPECIFIED 0x04
  5. #define FIELDS_NOT_SPECIFIED 0x0F
  6. DWORD
  7. AddSetDelRtmRouteInfo(
  8. IN PINTERFACE_ROUTE_INFO pRoute,
  9. IN LPCWSTR pwszIfName,
  10. IN DWORD dwCommand,
  11. IN DWORD dwFlags
  12. );
  13. DWORD
  14. AddSetDelPersistentRouteInfo(
  15. IN PINTERFACE_ROUTE_INFO pRoute,
  16. IN LPCWSTR pwszIfName,
  17. IN DWORD dwCommand,
  18. IN DWORD dwFlags
  19. );
  20. DWORD
  21. AddRoute(
  22. IN PINTERFACE_ROUTE_INFO pOldTable,
  23. IN PINTERFACE_ROUTE_INFO pRoute,
  24. IN DWORD dwIfType,
  25. IN OUT PDWORD pdwCount,
  26. OUT INTERFACE_ROUTE_INFO **ppNewTable
  27. );
  28. DWORD
  29. SetRoute(
  30. IN PINTERFACE_ROUTE_INFO pTable,
  31. IN PINTERFACE_ROUTE_INFO pRoute,
  32. IN DWORD dwIfType,
  33. IN DWORD dwFlags,
  34. IN OUT PDWORD pdwCount
  35. );
  36. DWORD
  37. DeleteRoute(
  38. IN PINTERFACE_ROUTE_INFO pOldTable,
  39. IN PINTERFACE_ROUTE_INFO pRoute,
  40. IN DWORD dwIfType,
  41. IN OUT PDWORD pdwCount,
  42. OUT INTERFACE_ROUTE_INFO **ppNewTable
  43. );
  44. BOOL
  45. IsRoutePresent(
  46. IN PINTERFACE_ROUTE_INFO pTable,
  47. IN PINTERFACE_ROUTE_INFO pRoute,
  48. IN DWORD dwIfType,
  49. IN ULONG ulCount,
  50. OUT PULONG pulIndex
  51. );
  52. DWORD
  53. ShowIpPersistentRoute(
  54. IN HANDLE hFile, OPTIONAL
  55. IN LPCWSTR pwszIfName,
  56. IN OUT PDWORD pdwNumRows
  57. );