PRB: SHBrowseForFolder() Fails When Entering an Invalid Folder Name (224342)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
This article was previously published under Q224342 SYMPTOMS
When a folder name is typed into the optional edit control in the Browse Folders dialog box and OK is clicked, the SHBrowseForFolder() function returns NULL and the pszDisplayName buffer is not set.
CAUSE
The SHBrowseForFolder() function returns NULL if an invalid folder name is typed into the optional edit control.
RESOLUTION
To allow only a valid folder to be returned from the SHBrowseForFolder() function, use an application-defined callback function and the BIF_VALIDATE flag.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbprb KB224342 |
---|
|