TDI Filter, hook ClientEventsReceive

Home Forums Discussions General Discussion TDI Filter, hook ClientEventsReceive

This topic contains 1 reply, has 2 voices, and was last updated by  Vadim Smirnov 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #5298


    I make hook for ClientEventReceive, ClientEventChainedReceive, etc
    How can I complete correctly the NewClientEventReceive function without calling OldClientEventReceive?
    It’s necessary to interrupt input data.

    NTSTATUS  NewClientEventReceive(IN PVOID  EventContext,
    IN CONNECTION_CONTEXT ConnectionContext,
    IN ULONG Flags,
    IN ULONG BytesIndicated,
    IN ULONG BytesAvailable,
    OUT ULONG *BytesTaken,
    IN PVOID Tsdu,
    OUT PIRP *IoRequestPacket
    NTSTATUS status;


    // here need complete this function, if simply return error status then BSOD (((

    status = OldClientEventReceive(EventContext, ConnectionContext, Flags, BytesIndicated, BytesAvailable, BytesTaken, Tsdu, IoRequestPacket);
    return status;

    P. S.
    If you are Russian, write russian )))


    Vadim Smirnov

    I think you can just return STATUS_DATA_NOT_ACCEPTED

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.