From f9f11c0e23134543ed9f2e111bef73d815645c56 Mon Sep 17 00:00:00 2001 From: basil00 Date: Wed, 27 Nov 2013 23:49:00 +0800 Subject: [PATCH] - Documentation tweaks and improvements. --- doc/windivert.html | 47 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/doc/windivert.html b/doc/windivert.html index 459cbb8..a03633f 100644 --- a/doc/windivert.html +++ b/doc/windivert.html @@ -56,10 +56,10 @@

WinDivert is a user-mode capture/sniffing/modification/blocking/re-injection package for -Windows Vista, Windows Server 2008, and Windows 7. +Windows Vista, Windows Server 2008, Windows 7, and Windows 8. WinDivert can be used to implement user-mode packet filters, packet sniffers, firewalls, NAT, VPNs, tunneling applications, etc., without the need to -write kernel-level code. +write kernel-mode code.

The main features of the WinDivert are: @@ -77,8 +77,8 @@ The main features of the WinDivert are:

WinDivert provides similar functionality to -divert sockets in FreeBSD/MacOS, NETLINK sockets in Linux, -and some commercial packages such as WinPkFilter for Windows. +divert sockets from FreeBSD/MacOS, NETLINK sockets from +Linux, and some commercial packages such as WinPkFilter for Windows. WinDivert also supports passive packet sniffing similar to Winpcap.

@@ -165,14 +165,13 @@ This will build MinGW compatible files and place them in the

WinDivert does not require any special installation. Simply place the WinDivert.dll, WinDivert.sys, -WinDivert.inf, and WdfCoInstaller*.dll files are in your +WinDivert.inf, and WdfCoInstaller*.dll files in the application's home directory.

-The WinDivert driver is installed on demand, i.e., when your application -makes a call to WinDivertOpen() from -WinDivert.dll. -The driver is installed silently. +The WinDivert driver is automatically installed on demand whenever your +application calls WinDivertOpen(). +The driver installation is also silent. The calling application must be running with Administrator privileges.

@@ -200,7 +199,7 @@ To use the WinDivert package, a program/application must:
 #include "windivert.h"
 
-
  • Link or dynamically load the WinDivert.dll dynamic link +
  • Link against or dynamically load the WinDivert.dll dynamic link library.
  • @@ -281,17 +280,6 @@ Description -ERROR_INVALID_PARAMETER - - -87 - - -This indicates an invalid packet filter string, layer, priority, or flags. - - - - ERROR_FILE_NOT_FOUND @@ -316,6 +304,17 @@ The calling application does not have Administrator privileges. +ERROR_INVALID_PARAMETER + + +87 + + +This indicates an invalid packet filter string, layer, priority, or flags. + + + + ERROR_INVALID_IMAGE_HASH @@ -458,9 +457,8 @@ will calculate it before passing the packet to the user application. This flag disables this behavior. -Note that only one of WINDIVERT_FLAG_SNIFF, -WINDIVERT_FLAG_DROP, or WINDIVERT_FLAG_PASSTHRU -may be set at the same time. +Note that only one of WINDIVERT_FLAG_SNIFF or +WINDIVERT_FLAG_DROP may be set at the same time.

    @@ -654,6 +652,7 @@ BOOL WinDivertSendEx( WinDivertOpen().
  • pPacket: A buffer containing the packet to be injected.
  • packetLen: The total length of the buffer pPacket.
  • +
  • flags: Reserved, set to zero.
  • pAddr: The WINDIVERT_ADDRESS for the injected packet.
  • sendLen: The total number of bytes injected. Can be NULL if this information is not required.