-
Notifications
You must be signed in to change notification settings - Fork 25
Update sample code #6
Comments
Trying this new code in the sandbox, getting error 87 every time...
|
87 on which line? |
87 is invalid param. Right off the bat I don't see you resetting your overlapped event. Error codes are standard win api errors fyi to help you debug. |
Never mind I am binding against windivert 2.0, I am guessing the params are not an exact match. |
Windivert doesn't use semver even between minor versions the api is generally not backward compatible. 2.0 might as well be version 9000. A 2.0 update is in progress but the struct are now really ugly and hard to emulate. |
I tried using the pinvoke binder application on the 2.0 windivert.h file but it crashed, do you know of any other tools that auto-generate the pinvoke? |
I have 2.0 recv ex working in a fork, will post example code in a bit |
Well I am having trouble getting send ex working. It gets 997 io pending error but then attempting to read the overlapped data after the send event has signalled always gives error 87... I have recv ex working. Care to compare code and see if we can figure it out? My branch is here: https://github.com/DigitalRuby/WinDivertSharp/tree/2.0 |
I've got 2.0 working with receive and send with batching now, see the latest commits on my fork. |
Yeah I already have all that working but I want to have accurate structs that are modifiable. |
Sorry for bumping an old issue, did not want to create a new. |
@Lemorz56 No problem. My driver is not open source. It doesn't even work like WinDivert anyway, as in, it's not a general purpose driver. |
How would we modify a packet's payload content? |
I ended up using the original C++ but im guessing you will need skip sending the one you want to change and then making your own using the old one, and sending that instead. |
I'm probably going to archive this repo. |
Yeah that's probably for the best |
Sandbox code is out of sync with the latest version.
The text was updated successfully, but these errors were encountered: