This function opens a segment.
The identity of the opened segment.
The next highest available identity is chosen for the segment. If no segments exist, zero is chosen for the identity.
By default, the newly created segment is chained. The method SetSegmentAttributes may be used to set a segment to unchained.