pipes.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.3 2000-07-25 11:27:35 jonas
  29. * fixed missing comment openers for log section
  30. Revision 1.2 2000/07/13 11:33:07 michael
  31. + removed logs
  32. }