<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">I missed you have<br>
FN:=StrAlloc (<span class="pl-c1">255</span>);<br>
<br>
in that case see Alexanders response.<br>
<br>
On 31/12/2020 02:00, Martin Frb via fpc-pascal wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6177b9e3-dfde-8c56-22e0-a0b6998b5f48@mfriebe.de"><br>
FN must point to an existing buffer (allocated mem) that receives
the result.
<br>
<br>
FN : Array [0..255]of Byte;
<br>
GotLen := GetClipboardFormatName(Format_Id, LPTSTR(@FN[0]),250);
<br>
<br>
then "move()" the received bytes into a string, make sure to use
UniqueString() or similar
<br>
<br>
_______________________________________________
<br>
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
<br>
</blockquote>
<br>
</body>
</html>