title String for a title that displays above a listbox containing a tree view for folder selection
directory String for the directory name passed by reference to the folder selection dialog box. The directory name is selected, and its subfolders, if any, are displayed in a dialog box tree view
Integer. Returns 1 if the function succeeds, 0 if the user selects cancel (or the dialog box is closed), -1 if an error occurs.
The directory selected by the user is returned in the same variable that is passed to the folder selection dialog box.