By default, the SHBrowseForFolder API lets the user start at the desktop to
browse the shell's namespace and pick a folder. Often, you may prefer that
your application start the browse dialog box at a folder that the user is
likely to want, such as the current working directory.
To set the browse dialog box's initial selection, the BROWSEINFO structure
must contain a callback function. When the callback function is called with
the message BFFM_INITIALIZED, it can in turn send a BFFM_SETSELECTION
message to set the dialog box's selection to the desired path.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.