SHStripMneumonicA function (shlwapi.h)
[This function is available through Windows XP and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.]
Removes the mnemonic marker from a string.
Syntax
CHAR SHStripMneumonicA(
[in, out] LPSTR pszMenu
);
Parameters
[in, out] pszMenu
Type: LPTSTR*
A pointer to the null-terminated string that contains the mnemonic marker.
Return value
Type: TCHAR
Returns the mnemonic character, if one was found. Otherwise, returns 0.
Remarks
The term "mnemonic" is misspelled in the function name.
The function supports the following mnemonic formats.
Input String | Output String | Mnemonic Character | Remarks |
---|---|---|---|
"Str&ing" | "String" | 'i' | None. |
"String (&S)" | "String" | 'S' | Supported only by the Unicode version of this function. Requires Windows XP or later. |
Note
The shlwapi.h header defines SHStripMneumonic as an alias that 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 is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server | Windows 2000 Server, Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shlwapi.h |
DLL | Shlwapi.dll (version 5.0 or later) |