As frame structures have been removed from public acces, we use FrameGet() to acces information.
Remplace :
line = win->frame.line; col = win->frame.col;
FrameGet( win, WF_CELL, &line, &col);