Skip to content

Latest commit

 

History

History
84 lines (67 loc) · 2.61 KB

nf-shlwapi-pathmatchspecw.md

File metadata and controls

84 lines (67 loc) · 2.61 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.PathMatchSpecW
PathMatchSpecW function (shlwapi.h)
Searches a string using a Microsoft MS-DOS wildcard match type. (Unicode)
PathMatchSpec
PathMatchSpec function [Windows Shell]
PathMatchSpecW
_win32_PathMatchSpec
shell.PathMatchSpec
shlwapi/PathMatchSpec
shlwapi/PathMatchSpecW
shell\PathMatchSpec.htm
shell
908e7204-d168-4179-9c7b-ad46ba68bebc
12/05/2018
PathMatchSpec, PathMatchSpec function [Windows Shell], PathMatchSpecA, PathMatchSpecW, _win32_PathMatchSpec, shell.PathMatchSpec, shlwapi/PathMatchSpec, shlwapi/PathMatchSpecA, shlwapi/PathMatchSpecW
shlwapi.h
Windows
Windows 2000 Professional, Windows XP [desktop apps only]
Windows 2000 Server [desktop apps only]
PathMatchSpecW (Unicode) and PathMatchSpecA (ANSI)
Shlwapi.lib
Shlwapi.dll (version 4.71 or later)
Windows
19H1
PathMatchSpecW
shlwapi/PathMatchSpecW
c++
APIRef
kbSyntax
DllExport
Shlwapi.dll
API-MS-Win-Core-shlwapi-legacy-l1-1-0.dll
KernelBase.dll
API-MS-Win-DownLevel-shlwapi-l1-1-1.dll
PathMatchSpec
PathMatchSpecA
PathMatchSpecW

PathMatchSpecW function

-description

Searches a string using a Microsoft MS-DOS wildcard match type.

-parameters

-param pszFile [in]

Type: LPCSTR

A pointer to a null-terminated string that contains the path to be searched.

-param pszSpec [in]

Type: LPCSTR

A pointer to a null-terminated string that contains the file type for which to search. For example, to test whether pszFile is a .doc file, pszSpec should be set to "*.doc".

-returns

Type: BOOL

Returns TRUE if the string matches, or FALSE otherwise.

-remarks

Note

The shlwapi.h header defines PathMatchSpec 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.