VOID
KiCloseChannel(
  IN  PEPROCESS Process,
  IN  PVOID Object,
  IN  ACCESS_MASK GrantedAccess,
  IN  ULONG ProcessHandleCount,
  IN  ULONG SystemHandleCount
  );

Routine Description:

    This function is called when a handle to a channel is closed. If the
    hanlde is the last handle in the process to the channel object and
    the channel object is a message channel, then send a message to the
    server indicating that the client handle is being closed.

Arguments:

    Object - Supplies a pointer to an executive channel.

Return Value:

    None.