LB_DIR

This message adds a list of the files from the current directory to the list box. Only files with the attributes specified by the wParam parameter and that match the file specification given by the lParam parameter are added.

Parameter Description  

wParam Contains a DOS attribute value. For a list of the DOS attributes, see the DlgDirList function in Chapter 4, “Functions Directory.”  
lParam Points to a file-specification string. The string can contain wildcard characters (for example, *.*).  

Return Value

The return value is a count of items displayed. The return value is LB_ERR if an error occurs; the return value is LB_ERRSPACE if insufficient space is available to store the new strings.

Comments

The return value of the LB_DIR message is one less than the return value of the
LB_GETCOUNT message.