Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - <b>bool dlgdirlist(hdlg hdlg, char *szpath, word idlistbox, word idstaticpath,</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
BOOL DlgDirList(HDLG hDlg, char *szPath, WORD idListBox, WORD idStaticPath,
                                                      WORD wFiletype)

  This function is used to fill a listbox with a directory listing.
The listbox specified by idListBox is filled with the list of files
and subdirectories that reside in the path specified by szPath.

Parameters
  hDlg is the handle of the dialog box which contains the directory listbox.
  szPath points to a null-terminated string which represents the path to list.
        The path has the form :
                [drive:][[\][directory][\directory]....\][filename]

  idListBox is the identifier of the listbox which will contain the directory
                listing.
  idStaticPath is the identifier of a static control which will be
   filled in with the current driver and directory name. If idStaticPath
   is 0, then no control will be filled with this information.
  wFiletype specifies the DOS attributes of the files to be displayed.
                These attributes will be used when DlgDirList() calls the DOS
                findfirst and findnext functions. The attributes are as
                follows :
      0000  Normal files
      0001  Read-only files
      0002  Hidden files
      0004  System files
      0010  Subdirectories
      0020  Archives
      4000  Drives

Returns
  This function returns TRUE if a valid directory listing was made,
even an empty directory listing. It returns FALSE if the path could
not be listed.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson