Skip to content

Latest commit

 

History

History
79 lines (65 loc) · 2.49 KB

nf-shlwapi-pathisdirectoryw.md

File metadata and controls

79 lines (65 loc) · 2.49 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shlwapi.PathIsDirectoryW
PathIsDirectoryW function (shlwapi.h)
Verifies that a path is a valid directory. (Unicode)
PathIsDirectory
PathIsDirectory function [Windows Shell]
PathIsDirectoryW
_win32_PathIsDirectory
shell.PathIsDirectory
shlwapi/PathIsDirectory
shlwapi/PathIsDirectoryW
shell\PathIsDirectory.htm
shell
9af3e3da-6b3a-4e81-ba50-ff7aeeb73c44
12/05/2018
PathIsDirectory, PathIsDirectory function [Windows Shell], PathIsDirectoryA, PathIsDirectoryW, _win32_PathIsDirectory, shell.PathIsDirectory, shlwapi/PathIsDirectory, shlwapi/PathIsDirectoryA, shlwapi/PathIsDirectoryW
shlwapi.h
Windows
Windows 2000 Professional, Windows XP [desktop apps only]
Windows 2000 Server [desktop apps only]
PathIsDirectoryW (Unicode) and PathIsDirectoryA (ANSI)
Shlwapi.lib
Shlwapi.dll (version 4.71 or later)
Windows
19H1
PathIsDirectoryW
shlwapi/PathIsDirectoryW
c++
APIRef
kbSyntax
DllExport
Shlwapi.dll
API-MS-Win-shlwapi-IE-l1-1-0.dll
Ext-MS-Win-shell-shlwapi-l1-1-0.dll
Ext-MS-Win-Shell-ShlwApi-l1-1-1.dll
Ext-MS-Win-Shell-ShlwAPI-L1-1-2.dll
PathIsDirectory
PathIsDirectoryA
PathIsDirectoryW

PathIsDirectoryW function

-description

Verifies that a path is a valid directory.

-parameters

-param pszPath [in]

Type: LPCTSTR

A pointer to a null-terminated string of maximum length MAX_PATH that contains the path to verify.

-returns

Type: BOOL

Returns (BOOL)FILE_ATTRIBUTE_DIRECTORY if the path is a valid directory; otherwise, FALSE.

-remarks

Note

The shlwapi.h header defines PathIsDirectory as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.