Hintergrund:
http://rvelthuis.de/articles/articles-convert.html
Hilfreiches Tool:
https://cdecl.org/
const Buffer* buffer: declare buffer as pointer to const Buffer
const unsigned char** Info: declare Info as pointer to pointer to const unsigned char
uint32_t* infoLength: declare infoLength as pointer to uint32_t
Delphi-Quellcode:
type
PBuffer = ^TBuffer;
TBuffer = record // ich nehme mal an, Buffer ist ein struct???
// hier stehen Sachen drin
end;
PInfo = PByte;
PPInfo = ^PInfo;
uint32_t = System.UInt32; // Alias für Cardinal
Tuint32_t = uint32_t;
Puint32_t = ^Tuint32_t; // ja ja, man kann auch System.PCardinal nehmen.
procedure getBufferInfo(buffer: PBuffer; Info: PPInfo; infoLength: Puint32_t); cdecl; external 'DeinDLLName.dll';