Verifies that a path is a valid directory.
Syntax
BOOL PathIsDirectory(
LPCTSTR pszPath
);
Parameters
- pszPath
-
[in] A pointer to a null-terminated string of maximum length MAX_PATH that contains the path to verify.
Return Value
Returns TRUE if the path is a valid directory (FILE_ATTRIBUTE_DIRECTORY is set), or FALSE otherwise.
Function Information
| Minimum DLL Version | shlwapi.dll version 4.71 or later |
|---|
| Custom Implementation | No |
|---|
| Header | shlwapi.h |
|---|
| Import library | shlwapi.lib |
|---|
| Minimum operating systems |
Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0 |
|---|
| Unicode | Implemented as
ANSI and Unicode versions. |
|---|