NTSTATUS
NtSendWaitReplyChannel(
  IN  HANDLE ChannelHandle,
  IN  PVOID Text,
  IN  ULONG Length,
  OUT PCHANNEL_MESSAGE *Message
  );

Routine Description:

    This function sends a message to a server and waits for a reply.

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

Arguments:

    ChannelHandle - Supplies a handle to a message channel over which the
        specified message text is sent.

    Text - Supplies a pointer to the message text.

    Length - Supplies the length of the message text.

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

Return Value:

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