NTSTATUS
NtOpenChannel(
  OUT PHANDLE ChannelHandle,
  IN  POBJECT_ATTRIBUTES ObjectAttributes
  );

Routine Description:

    This function opens a handle to a server channel by creating a message
    channel that is connected to the specified server channel.

Arguments:

    ChannelHandle - Supplies a pointer to a variable that will receive the
        channel object handle.

    ObjectAttributes - Supplies a pointer to an object attributes structure.

Return Value:

    If the channel object is opened, then a success status is returned.
    Otherwise, a failure status is returned.