SetEventHandler(
  IN  PDEVICE_OBJECT DeviceObject,
  IN  PFILE_OBJECT FileObject,
  IN  ULONG EventType,
  IN  PVOID EventHandler,
  IN  PVOID Context
  );

Routine Description:

    This routine registers an event handler with a TDI transport provider.

Arguments:

    IN PDEVICE_OBJECT DeviceObject - Supplies the device object of the transport provider.
    IN PFILE_OBJECT FileObject - Supplies the address object's file object.
    IN ULONG EventType, - Supplies the type of event.
    IN PVOID EventHandler - Supplies the event handler.
    IN PVOID Context - Supplies the context passed into the event handler when it runs

Return Value:

    NTSTATUS - Final status of the set event operation