Det er ikke en Win32 API funktion men en Delphi funktion, så der er ingen grund til at kigge
i Win32 API dokumentationen.
Der er såmænd heller ingen grund til at kigge andre steder.
Lidt investigation finder nemlig:
System.pas
procedure _LStrFromChar(var Dest: AnsiString; Source: AnsiChar);
asm
PUSH EDX
MOV EDX,ESP
MOV ECX,1
CALL _LStrFromPCharLen
POP EDX
end;
og
http://hallvards.blogspot.com/2006_04_01_archive.htmlmed
The System unit contains a number of RTL magic routines. Btw, I’m not making up the phrases “magic routines” and “compiler magic”. Above the declaration of a number of special routines with names that start with an underscore (which maps to an ampersand when compiled) in the System.pas unit you’ll find this comment:
{ Procedures and functions that need compiler magic }
The compiler is hard-coded to find and use these as it is generating code for language features such as strings, dynamic arrays and dynamic methods. They cannot be called explicitly from Pascal – only implicitly by using the language features they implement or explicitly from BASM. As we have seen in a couple of cases, to call a compiler magic routine from BASM you use the syntax CALL System.@MagicName.
D.v.s. at det er en funktion som bruges internt i kode genereret af Delphi og ikke en
funktion du kan/skal kalde.
Og hvis du vil kalde den, så er du nødt til at switche til assembler.