The list of files of the given directory was necessary for me. I have written down, following: invoke SendMessage,hList1,LB_DIR,DDL_ARCHIVE+ DDL_DRIVES+DDL_DIRECTORY,ADDR Patn In result the list was filled by 8.3 format files (as in DOS). How to fill in the list by long names of files?
Try to find files yourself using FindFirstFile/FindNextFile, and then use LB_ADDSTRING to add each filename.
As per MSDN lookup on MS's website, the LB_DIR returns short filenames under Win95. You'll need to use a FindFirstFile/ FindNextFile loop and/or use GetFullPathName on each entry, and use LB_ADDSTRING in your SendMessage statement.