Skip to content

Latest commit

 

History

History
146 lines (88 loc) · 3.87 KB

nf-winbase-lstrcatw.md

File metadata and controls

146 lines (88 loc) · 3.87 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:winbase.lstrcatW
lstrcatW function (winbase.h)
Appends one string to another.Warning  Do not use. (Unicode)
_win32_lstrcat
_win32_lstrcat_cpp
lstrcat
lstrcat function [Menus and Other Resources]
lstrcatW
menurc.lstrcat
winbase/lstrcat
winbase/lstrcatW
winui._win32_lstrcat
menurc\lstrcat.htm
menurc
VS|winui|~\winui\windowsuserinterface\resources\strings\stringreference\stringfunctions\lstrcat.htm
12/05/2018
_win32_lstrcat, _win32_lstrcat_cpp, lstrcat, lstrcat function [Menus and Other Resources], lstrcatA, lstrcatW, menurc.lstrcat, winbase/lstrcat, winbase/lstrcatA, winbase/lstrcatW, winui._win32_lstrcat
winbase.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
lstrcatW (Unicode) and lstrcatA (ANSI)
Kernel32.lib
Kernel32.dll
Windows
19H1
lstrcatW
winbase/lstrcatW
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-String-Obsolete-l1-1-0.dll
kernel32legacy.dll
API-MS-Win-Core-String-Obsolete-l1-1-1.dll
API-MS-Win-DownLevel-Kernel32-l2-1-0.dll
lstrcat
lstrcatA
lstrcatW

lstrcatW function

-description

Appends one string to another.

Warning  Do not use. Consider using StringCchCat instead. See Security Considerations.
 

-parameters

-param lpString1 [in, out]

Type: LPTSTR

The first null-terminated string. This buffer must be large enough to contain both strings.

-param lpString2 [in]

Type: LPTSTR

The null-terminated string to be appended to the string specified in the lpString1 parameter.

-returns

Type: LPTSTR

If the function succeeds, the return value is a pointer to the buffer.

If the function fails, the return value is NULL and lpString1 may not be null-terminated.

-see-also

Conceptual

Reference

StringCbCat

StringCbCatEx

StringCbCatN

StringCbCatNEx

StringCchCat

StringCchCatEx

StringCchCatN

StringCchCatNEx

Strings

lstrcmp

lstrcmpi

lstrlen

-remarks

Note

The winbase.h header defines lstrcat 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.