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.

147 lines
2.2 KiB

  1. //=============================================================================
  2. // Copyright (c) 1998 Microsoft Corporation
  3. // File Name: if.h
  4. // Abstract:
  5. //
  6. // Author: K.S.Lokesh (lokeshs@) 1-1-98
  7. //=============================================================================
  8. //
  9. // API's
  10. //
  11. DWORD
  12. WINAPI
  13. AddInterface(
  14. IN PWCHAR pwszInterfaceName,//not used
  15. IN ULONG IfIndex,
  16. IN NET_INTERFACE_TYPE dwIfType,
  17. IN DWORD dwMediaType,
  18. IN WORD wAccessType,
  19. IN WORD wConnectionType,
  20. IN PVOID pvConfig,
  21. IN ULONG ulStructureVersion,
  22. IN ULONG ulStructureSize,
  23. IN ULONG ulStructureCount
  24. );
  25. DWORD
  26. DeleteInterface(
  27. IN DWORD IfIndex
  28. );
  29. DWORD
  30. WINAPI
  31. InterfaceStatus(
  32. ULONG IfIndex,
  33. BOOL bIfActive,
  34. DWORD dwStatusType,
  35. PVOID pvStatusInfo
  36. );
  37. DWORD
  38. WINAPI
  39. SetInterfaceConfigInfo(
  40. IN DWORD IfIndex,
  41. IN PVOID pvConfig,
  42. IN ULONG ulStructureVersion,
  43. IN ULONG ulStructureSize,
  44. IN ULONG ulStructureCount
  45. );
  46. DWORD
  47. WINAPI
  48. GetInterfaceConfigInfo(
  49. IN DWORD IfIndex,
  50. IN OUT PVOID pvConfig,
  51. IN OUT PDWORD pdwSize,
  52. IN OUT PULONG pulStructureVersion,
  53. IN OUT PULONG pulStructureSize,
  54. IN OUT PULONG pulStructureCount
  55. );
  56. //
  57. // local prototypes
  58. //
  59. DWORD
  60. AddIfEntry(
  61. ULONG IfIndex,
  62. PVOID pConfigOpaque,
  63. ULONG StructureSize
  64. );
  65. DWORD
  66. ValidateIfConfig(
  67. ULONG IfIndex,
  68. PVOID pConfigOpaque,
  69. ULONG StructureSize
  70. );
  71. VOID
  72. DeleteIfEntry(
  73. PIF_TABLE_ENTRY pite
  74. );
  75. DWORD
  76. BindInterface(
  77. ULONG IfIndex,
  78. PIP_ADAPTER_BINDING_INFO pBindInfo
  79. );
  80. DWORD
  81. ActivateInterface(
  82. PIF_TABLE_ENTRY pite
  83. );
  84. DWORD
  85. EnableInterface(
  86. IN DWORD IfIndex
  87. );
  88. DWORD
  89. EnableIfEntry(
  90. DWORD IfIndex,
  91. BOOL bChangedByRtrmgr
  92. );
  93. DWORD
  94. UnBindInterface(
  95. IN DWORD IfIndex
  96. );
  97. DWORD
  98. DeactivateInterface(
  99. PIF_TABLE_ENTRY pite
  100. );
  101. DWORD
  102. DisableInterface(
  103. IN DWORD IfIndex
  104. );
  105. DWORD
  106. DisableIfEntry(
  107. DWORD IfIndex,
  108. BOOL bChangedByRtrmgr
  109. );
  110. DWORD
  111. CreateIfSockets(
  112. PIF_TABLE_ENTRY pite
  113. );
  114. VOID
  115. DeleteIfSockets(
  116. PIF_TABLE_ENTRY pite
  117. );