Skip to content

Latest commit

 

History

History
91 lines (70 loc) · 2.49 KB

nf-shlwapi-strchra.md

File metadata and controls

91 lines (70 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.StrChrA
StrChrA function (shlwapi.h)
Searches a string for the first occurrence of a character that matches the specified character. The comparison is case-sensitive. (ANSI)
StrChrA
shlwapi/StrChrA
shell\StrChr.htm
shell
3e4c20cb-0b46-4f84-bbd1-860fdedde8c8
12/05/2018
StrChr, StrChr function [Windows Shell], StrChrA, StrChrW, _win32_StrChr, shell.StrChr, shlwapi/StrChr, shlwapi/StrChrA, shlwapi/StrChrW
shlwapi.h
Windows
Windows 2000 Professional, Windows XP [desktop apps only]
Windows 2000 Server [desktop apps only]
StrChrW (Unicode) and StrChrA (ANSI)
Shlwapi.lib
Shlwapi.dll (version 4.71 or later)
Windows
19H1
StrChrA
shlwapi/StrChrA
c++
APIRef
kbSyntax
DllExport
Shlwapi.dll
API-MS-Win-Core-shlwapi-Obsolete-l1-1-0.dll
KernelBase.dll
API-MS-Win-Core-shlwapi-Obsolete-l1-2-0.dll
API-MS-Win-DownLevel-shlwapi-l1-1-0.dll
API-MS-Win-DownLevel-shlwapi-l1-1-1.dll
StrChr
StrChrA
StrChrW

StrChrA function

-description

Searches a string for the first occurrence of a character that matches the specified character. The comparison is case-sensitive.

-parameters

-param pszStart [in]

Type: PTSTR

The address of the string to be searched.

-param wMatch

Type: TCHAR

The character to be used for comparison.

-returns

Type: PTSTR

Returns the address of the first occurrence of the character in the string if successful, or NULL otherwise.

-remarks

The comparison assumes pszStart points to the start of a null-terminated string.

Note

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