Reply To: Problems in Hooking SendHandler (NDIS Hooks)

Home Forums Discussions General Problems in Hooking SendHandler (NDIS Hooks) Reply To: Problems in Hooking SendHandler (NDIS Hooks)

#5672
Vadim Smirnov
Keymaster

    1) First issue with direct NDIS_OPEN_BLOCK modification works just like you have described. The only fix is hooking internal NDIS-routines and repatching the NDIS_OPEN_BLOCK each time when handlers are changed,

    2) The second approach with substitution on NDIS_OPEN_BLOCK works fine, and in your case problem is somethere else, lines you have provided look OK.

    In general NDIS hooking driver is relatively complicated and it is difficult to design such a driver from the scratch. So I would recommend to use one of the documented approaches (intermediate, filter hook or etc…) or license ready NDIS hooking solution instead of trying to create the new one.