get_sesslist(&sesslist, FALSE);
int do_config(void){    int ret;    ctrlbox = ctrl_new_box();    setup_config_box(ctrlbox, &sesslist, FALSE, 0, 0);    win_setup_config_box(ctrlbox, &dp.hwnd, (help_path != NULL), FALSE);    dp_init(&dp);    winctrl_init(&ctrls_base);    winctrl_init(&ctrls_panel);    dp_add_tree(&dp, &ctrls_base);    dp_add_tree(&dp, &ctrls_panel);    dp.wintitle = dupprintf("%s Configuration", appname);    dp.errtitle = dupprintf("%s Error", appname);    dp.data = &cfg;    dp.shortcuts['g'] = TRUE;	       /* the treeview: `Cate&gory' */    get_sesslist(&sesslist, TRUE);    ret =	SaneDialogBox(hinst, MAKEINTRESOURCE(IDD_MAINBOX), NULL,		  GenericMainDlgProc);    get_sesslist(&sesslist, FALSE);    ctrl_free_box(ctrlbox);    winctrl_cleanup(&ctrls_panel);    winctrl_cleanup(&ctrls_base);    dp_cleanup(&dp);    return ret;}