Hi, trying to call WinDivert.dll
#RequireAdmin
#cs
handle = DivertOpen(argv[1], 0, priority, DIVERT_FLAG_SNIFF);
HANDLE DivertOpen(
__in const char *filter,
__in DIVERT_LAYER layer,
__in INT16 priority,
__in UINT64 flags
);
#ce
$dllWinDivert = DllOpen("WinDivert.dll")
$hWinDivert = DllCall($dllWinDivert, "handle", "DivertOpen", "char*", "true", "struct", 0, "uint16", 0, "uint64", 0)
If @error Then MsgBox(0, "", @error)
DllClose($dllWinDivert)
I'm getting an "1 unable to use the DLL file" error at the DllCall().
If I play around with the types, I'll get "bad parameter" errors, so I'm assuming the ones I've used are at least "close", else would it not give a bad param error?
Any ideas? Thanks.