PathIsDirectoryA.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

PathIsDirectoryA (SHLWAPI.@)

SYNOPSIS

BOOL PathIsDirectoryA
 (
  LPCSTR lpszPath
 )

DESCRIPTION

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

Defined in "shlwapi.h".

Implemented in "dlls/shlwapi/path.c".

Debug channel "shell".