From 74b806d04210835d8b198684fc1df215468472f7 Mon Sep 17 00:00:00 2001
From: basil00
@@ -857,7 +858,83 @@ supports overlapped I/O via the lpOverlapped parameter.
++BOOL WinDivertShutdown( + __in HANDLE handle, + __in WINDIVERT_SHUTDOWN how); +); ++ |
+Parameters
+
+Return Value
+TRUE if successful, FALSE if an error occurred.
+Use GetLastError() to get the reason for the error.
+
+Remarks
+This operation causes all or part of a WinDivert handle to be shut down.
+The possible values for how are:
+
+
| +How + | ++Description + | +
|---|---|
| +WINDIVERT_SHUTDOWN_RECV + | ++Stop new packets being queued for +WinDivertRecv(). + | +
| +WINDIVERT_SHUTDOWN_SEND + | ++Stop new packets being injected via +WinDivertSend(). + | +
| +WINDIVERT_SHUTDOWN_BOTH + | ++Equivalent to (WINDIVERT_SHUTDOWN_RECV | WINDIVERT_SHUTDOWN_SEND). + | +
+Note that previously queued packets can still be received after +WINDIVERT_SHUTDOWN_RECV. +When the packet queue is empty, +WinDivertRecv() +will fail with ERROR_NO_DATA. +
+
BOOL WinDivertClose( @@ -883,7 +960,7 @@ Closes a WinDivert handle created by 5.8 WinDivertSetParam+5.9 WinDivertSetParam
|