Added flags to VirtInOutDlg event