// retrieve parameters of 12th item struct FarDialogItem DialogItem; Info.SendDlgMessage(hDlg,DM_GETDLGITEM,12,(LONG_PTR)&DialogItem);