Some news on my attempts to port the Delphi code under any way to make it work with Indilib (3 methods, 3 fails) :
1- porting Delphi dll to C library, using opensource libFTDI
Translating original D2XX commands to libFTDI is difficult because of differences between methods to write a buffer : Pascal word vs pascal Byte...
2- porting Delphi dll to C library, using closed source FTDI D2XX
Easier to translate because commands are the same, but no more luck.
Camera opens and closes, many other things happens (for example i think the initialization step is ok), but i can't manage to retrieve any data during reading when exposure is completed.
3- porting Delphi dll to Lazarus (Free Pascal) library, using closed source FTDI D2XX, calling this in C code
The best i can do is to open and close FTDI communication, but there is some kind of black magic within library usages, when (like here) a library is written in freepascal and called in a C program.
I think i'll soon give up, it takes too much time // i'm not skilled enough