please dont rip this site Prev Next

LB_DIR Overview  Group

An application sends an LB_DIR message to add a list of filenames to a list box.


wParam = (WPARAM) (UINT) uAttrs;          // file attributes 

lParam = (LPARAM) (LPCTSTR) lpszFileSpec; // filename address 



Value of wParam. Specifies the attributes of the files to be added to the list box. This parameter can be a combination of the following values:




Includes archived files.


Includes subdirectories. Subdirectory names are enclosed in square brackets ([ ]).


Includes drives. Drives are listed in the form [-x-], where x is the drive letter.


Includes only files with the specified attributes. By default, read-write files are listed even if DDL_READWRITE is not specified.


Includes hidden files.


Includes read-only files.


Includes read-write files with no additional attributes.


Includes system files.

Value of lParam. Points to the null-terminated string that specifies the filename to add to the list. If the filename contains wildcards (for example, *.*), all files that match the wildcards and have the attributes specified by the uAttrs parameter are added to the list.

Return Values

The return value is the zero-based index of the last filename added to the list. If an error occurs, the return value is LB_ERR. If there is insufficient space to store the new strings, the return value is LB_ERRSPACE.

See Also


See also:

file: /Techref/os/win/api/win32/mess/src/msg09_27.htm, 3KB, , updated: 2000/4/7 12:20, local time: 2022/5/21 22:35,

 ©2022 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> LB_DIR</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2022 contributors:
o List host: MIT, Site host, Top posters @20220521
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.

Welcome to!