To get a pointer to a form if you know its name, call the function fm_namptr():
DFORMPTR fm_namptr(fmname_stp) UCHAR * fmname_stp; /* Name of form */