Skip to content

Latest commit

 

History

History
79 lines (65 loc) · 2.36 KB

nf-shlwapi-pathfindfilenamea.md

File metadata and controls

79 lines (65 loc) · 2.36 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.PathFindFileNameA
PathFindFileNameA function (shlwapi.h)
Searches a path for a file name. (ANSI)
PathFindFileNameA
shlwapi/PathFindFileNameA
shell\PathFindFileName.htm
shell
f3824dee-1169-4f89-9844-35aa8a1830c4
12/05/2018
PathFindFileName, PathFindFileName function [Windows Shell], PathFindFileNameA, PathFindFileNameW, _win32_PathFindFileName, shell.PathFindFileName, shlwapi/PathFindFileName, shlwapi/PathFindFileNameA, shlwapi/PathFindFileNameW
shlwapi.h
Windows
Windows 2000 Professional, Windows XP [desktop apps only]
Windows 2000 Server [desktop apps only]
PathFindFileNameW (Unicode) and PathFindFileNameA (ANSI)
Shlwapi.lib
Shlwapi.dll (version 4.71 or later)
Windows
19H1
PathFindFileNameA
shlwapi/PathFindFileNameA
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-0.dll
API-MS-Win-DownLevel-shlwapi-l1-1-1.dll
PathFindFileName
PathFindFileNameA
PathFindFileNameW

PathFindFileNameA function

-description

Searches a path for a file name.

-parameters

-param pszPath [in]

Type: PTSTR

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

-returns

Type: PTSTR

Returns a pointer to the address of the string if successful, or a pointer to the beginning of the path otherwise.

-remarks

Note

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