pipes.inc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1998 by Michael Van Canneyt
  5. Win32 part of pipe stream.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. uses windows;
  13. Const piInheritablePipe : TSecurityAttributes = (
  14. nlength:SizeOF(TSecurityAttributes);
  15. lpSecurityDescriptor:Nil;
  16. Binherithandle:True);
  17. piNonInheritablePipe : TSecurityAttributes = (
  18. nlength:SizeOF(TSecurityAttributes);
  19. lpSecurityDescriptor:Nil;
  20. Binherithandle:False);
  21. PipeBufSize = 1024;
  22. Function CreatePipeHandles (Var Inhandle,OutHandle : Longint) : Boolean;
  23. begin
  24. Result := CreatePipe (@Inhandle,@OutHandle,@piInheritablePipe,PipeBufSize);
  25. end;
  26. {
  27. $Log$
  28. Revision 1.4 2002-09-07 15:15:29 peter
  29. * old logs removed and tabs fixed
  30. }