AddCharToString method


Prototype

AddCharToString Proto lpszString:LPSTR, lChar:DWord (for 32-bit projects)

AddCharToString Proto lpszString:LPSTR, lChar:QWord (for 64-bit projects)

Syntax

Invoke AddCharToString, lpszString, lChar

Function

Adds a character at the end of a text string.

Parameters

lpszString

Pointer to the effective address of the null-terminated string where the character has to be added.

lChar

Character to be added.

Return value

Eax/Rax returns a pointer to the string just after the added character.


REMARKS: The AddCharToString method expects lpszString to be a Unicode string if the application is running as Unicode, or an ANSI string if not (see the IsAppUnicode method). You can call AddCharToStringA if lpszString is an ANSI string in Unicode applications, or AddCharToStringW if lpszString is a Unicode string in ANSI applications.