IM driver

Hi!
I am working on IM driver based on DDK passthru example.
After parsing of a received packet in PtReceivePacket depending on results
of parsing sometimes I need to drop the received packet (it’s easy) and
send a reply.
What’s a proper way to arrange a new packet and to send it?
Could it be done in PtReceivePacket?
Thx
Andrew