From 25c6a70a570d0c3021af84526e78ba4a7453cd6f Mon Sep 17 00:00:00 2001 From: twisteroidambassador Date: Wed, 28 Nov 2018 22:23:05 +0800 Subject: [PATCH] Add C++ build directions. --- cpp/build.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 cpp/build.md diff --git a/cpp/build.md b/cpp/build.md new file mode 100644 index 0000000..adbd876 --- /dev/null +++ b/cpp/build.md @@ -0,0 +1,33 @@ +# Building C++ version of retroflect + +## Requirement + +* Visual Studio. I used VS 2017 Community; other versions may also work. +* [WinDivert 1.4.3](https://reqrypt.org/windivert.html). Download + either the -A or -B binary package. + + +## Choosing appropriate WinDivert files + +Use the following files from WinDivert binary package, according +to the build target: + +* x64 build: `WinDivert.dll`, `WinDivert.lib` and + `WinDivert64.sys` from the `x86_64` directory. This will only run + on 64-bit Windows. +* x86 build: `WinDivert.dll`, + `WinDivert.lib`, `WinDivert32.sys` and `WinDivert64.sys` from the + `x86` directory. This will run on both 32-bit and 64-bit Windows. + +For both builds `windivert.h` from the `include` directory is required. + +See [WinDivert documentation](https://reqrypt.org/windivert-doc.html) +for details. + +## Steps + +* Put the appropriate `windivert.h` and `WinDivert.lib` in + `retroflect\windivert`. +* Open the solution file `retroflect.sln` and build. +* Put `WinDivert.dll` and `WinDivert*.sys` in the same directory as + the built executable file `retroflect.exe`.