diff options
author | Simon Rozman <simon@rozman.si> | 2019-03-27 15:17:54 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-03-27 15:18:37 +0100 |
commit | 7c6591b4f69a8b6a6f503c1ab0cd87f353a54189 (patch) | |
tree | 47f343f26ec06dd50a6c8a363e4d692433758ce2 /README.md | |
parent | Simplify adapter context extraction from device extension (diff) | |
download | wintun-7c6591b4f69a8b6a6f503c1ab0cd87f353a54189.tar.xz wintun-7c6591b4f69a8b6a6f503c1ab0cd87f353a54189.zip |
Update documentation
Device name actually uses LUID index only. Not an entire LUID. IfType
in LUID is always 53 (IF_TYPE_PROP_VIRTUAL).
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ If you already have `wintun.vcxproj.user` file, just add the `<PropertyGroup>` s ## Usage -After loading the driver and creating a network interface the typical way using [SetupAPI](https://docs.microsoft.com/en-us/windows-hardware/drivers/install/setupapi), open `\\.\Device\WINTUN%d` as Local System, where `%d` is the [LUID](https://docs.microsoft.com/en-us/windows/desktop/api/ifdef/ns-ifdef-_net_luid_lh) of the network device. You may then [`ReadFile`](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-readfile) and [`WriteFile`](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-writefile) bundles of packets of the following format: +After loading the driver and creating a network interface the typical way using [SetupAPI](https://docs.microsoft.com/en-us/windows-hardware/drivers/install/setupapi), open `\\.\Device\WINTUN%d` as Local System, where `%d` is the [LUID](https://docs.microsoft.com/en-us/windows/desktop/api/ifdef/ns-ifdef-_net_luid_lh) index of the network device. You may then [`ReadFile`](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-readfile) and [`WriteFile`](https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-writefile) bundles of packets of the following format: ``` +------------------------------+ |