listboxname The name of the ListBox control you want to populate
filespec A string whose value is the file pattern. This is usually a mask (for example, *.INI or *.TXT). If you include a path, it becomes the current drive and directory
filetype An unsigned integer representing one or more types of files you want to list in the ListBox. Types are:?0 ?Read/write files?1 ?Read-only files?2 ?Hidden files?4 ?System files?16 ?Subdirectories?32 ?Archive (modified) files?16384 ?Drives?32768 ?Exclude read/write files from the listTo list several types, add the numbers associated with the types. For example, to list read-write files, subdirectories, and drives, use 0+16+16384 or 16400 for filetype
statictext (optional) The name of the StaticText in which you want to display the current drive and directory
Argument Description
listboxname The name of the ListBox control you want to populate
filespec A string whose value is the file pattern. This is usually a mask (for example, *.INI or *.TXT). If you include a path, it becomes the current drive and directory
filetype An unsigned integer representing one or more types of files you want to list in the ListBox. Types are:?0 ?Read/write files?1 ?Read-only files?2 ?Hidden files?4 ?System files?16 ?Subdirectories?32 ?Archive (modified) files?16384 ?Drives?32768 ?Exclude read/write files from the listTo list several types, add the numbers associated with the types. For example, to list read-write files, subdirectories, and drives, use 0+16+16384 or 16400 for filetype
statictext (optional) The name of the StaticText in which you want to display the current drive and directory
Return value
Boolean. Returns TRUE if the search path is valid so that the ListBox is populated or the list is empty. DirList returns FALSE if the ListBox could not be populated (for example, filespec was a file, not a directory, or specified an invalid path). If any argument's value is NULL, DirList returns NULL.