[fpc-pascal] File Descriptor in Windows ?

Michael Van Canneyt michael at freepascal.org
Sun Mar 22 10:21:16 CET 2015



On Sat, 21 Mar 2015, fredvs wrote:

>> What do you do with the inHandle ?
>> Michael.
>
> It is used by mp123 mp3-decoder library.
>
> =>function mpg123_open_fd(mph: Tmpg123_handle; fd: integer);
>
> fp (file descriptor) := InHandle ;
>
> It seems that InHandle as file descriptor does not work on Windows.
> But in *nix system, it works.

It should work, because TProcess relies on this function to do it's job.
However, pipes work differently from normal file descriptors.

Michael.



More information about the fpc-pascal mailing list