[fpc-pascal] File Descriptor in Windows ?

fredvs fiens at hotmail.com
Sat Mar 21 20:11:24 CET 2015

> 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.


Ooops, so fast and so good !
I will try it now.
Write you later.

Many thanks.


Many thanks ;-)
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/File-Descriptor-in-Windows-tp5721448p5721450.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.

More information about the fpc-pascal mailing list