success = RemSegment(segment)
D0 D1
BOOL RemSegment(struct Segment *)
Removes a resident segment from the DOS resident segment list, unloads it, and does any other cleanup required. Will only succeed if the seg_UC (usecount) is 0.
The Segment structure is defined in <dos/dos.h>.