How to get fileName of documents returned by aaApi_DocumentSelectDlg (multiple selection) ?

Hi,

When selecting multiple documents with aaApi_DocumentSelectDlg, I can only retrieve the first document file name. 

Here is the code I am using :

vector<PWDocInfo> ret;

AAOPENDOCSDLG2_PARAM param = {};
param.ulMask |= AAOPENDLG2_MASK_FLAGS | AAOPENDLG2_MASK_COUNT | AAOPENDLG2_MASK_TITLE | AAOPENDLG2_MASK_FILEEXTFILTER | AAOPENDLG2_MASK_DOCUMENTID | AAOPENDLG2_MASK_PROJECTID| AAOPENDLG2_MASK_FILENAME ;

param.lpctstrTitle = dlgTitle.data();
param.lpctstrFilter = filter.data();
param.ulFlags = AAOPENDLG2_HIDEREADONLY | AAOPENDLG2_NO_USE_LASTPROJ | AAOPENDLG2_NO_CHANGE_LASTPROJ;


LONG_PTR retCode = aaApi_DocumentSelectDlg(&param);
if ( IDOK != retCode) return;

for( int i = 0; i < param.lCount; i++)
{
    PWDocInfo doc;
    doc.docId = param.plDocumentIds[i];
    doc.filePath = param.pptstrFileName[i]; //Works only with the first document selected !!!
    doc.projectId = param.plProjectIds[i];
    ret.push_back(doc);
}

aaApi_Free(param.pptstrFileName);
aaApi_Free(param.plDocumentIds);
aaApi_Free(param.plProjectIds);

}

Do you see what I am doing wrong ?

Is there a better way to achieve this ? I would like to be able to define the fetch method (checkout, export or copy out) so one of the 3 variants of DocumentExtendedSelectDlg with AAOPENDLG2_MASK_OPENOPTIONS mask could be a better candidate...or even aaApi_ExportDocumentDlg, or aaApi_FetchDocuments !

Thanks in advance for your help