PathIsDirectoryA3w
Usage
BOOL PathIsDirectoryA
(
LPCSTR lpszPath
)
Overview
Determine if a path is a valid directory.
Params
lpszPath [In] Path to check.
Returns
FILE_ATTRIBUTE_DIRECTORY if lpszPath exists and can be read (See Notes) FALSE if lpszPath is invalid or not a directory.
Notes
Although this function is prototyped as returning a BOOL, it returns FILE_ATTRIBUTE_DIRECTORY for success. This means that code such as:
if (PathIsDirectoryA("c:\windows\") == TRUE)
...
will always fail.
Implementation
Declared in "shlwapi.h".
Implemented in "dlls/shlwapi/path.c".
Debug channel "shell".
Releases
4 releases since Debian 4.0 (Etch); the text changed 3 times.