[fpc-pascal] File Descriptor in Windows ?

Michael Van Canneyt michael at freepascal.org
Sat Mar 21 19:59:52 CET 2015



On Sat, 21 Mar 2015, fredvs wrote:

> Hello.
>
> In Unix systems File Descriptor can be created with fpPipe(FDInput,
> FDOutput).
> Then FDInput/FDOutput may be used as file descriptors.
> Ok, perfect.
>
> But fpPipe is part of BaseUnix/Unix...
>
> So the question is:
>
> How to create such of File Descriptor with Windows?...

See unit pipes, there is a platform-independennt call:
Function CreatePipeHandles (Var Inhandle,OutHandle : THandle; APipeBufferSize : Cardinal = 1024) : Boolean;

There is a second function which creates TStreams descendents.

Michael.



More information about the fpc-pascal mailing list