NTSTATUS
KiListenChannel(
  IN  PRECHANNEL ServerChannel,
  IN  KPROCESSOR_MODE WaitMode,
  OUT PCHANNEL_MESSAGE *Message
  );

Routine Description:

    This function listens for a client message to arrive.

    N.B. This function can only be executed from a server thread.

Arguments:

    ServerChannel - Supplies a pointer to a litent channel on which the
        server thread listens.

    WaitMode - Supplies the processor wait mode.

    Message - Supplies a pointer to a variable that receives a pointer
        to the client message header.

Return Value:

    If the function is successfully completed, then a success status is
    returned. Otherwise, a failure status is returned.