disable tdi event

Hi All,
I’m writing a custom tdi filter and need to disable tdi_xxx_event for a short period of time (in order to perform few commands without any event happening in between…)

  1. I tried disabling the events as the DDK says by setting the handlers of the transport driver to NULL. It crashes on other tdi filter drivers (such as avgtdi.sys and more…) so it has probably to do with those drivers not accepting a disable of events.

  2. tried to raised irql to DISPATCH and didn’t help either as they kept happening…

Does anybody have another option for solving this issue ?

Thanks
Lior