The getscrmask subroutine returns the coordinates of the current screenmask in the parameters left, right, bottom, and top. The syntax is as follows:
void getscrmask(Screencoord *left, Screencoord *right, Screencoord *bottom, Screencoord *top)