Using Win32 functions in Visual FoxPro Image Gallery
Pipe
..msdn
ConnectNamedPipe
CreateNamedPipe
CreatePipe
DisconnectNamedPipe
SetNamedPipeHandleState
Code examples:
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
CreatePipe
..msdn    Add comment     W32 Constants      Translate this page
The CreatePipe function creates an anonymous pipe, and returns handles to the read and write ends of the pipe.
Code examples:
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Declaration:
BOOL CreatePipe(
  PHANDLE hReadPipe,
  PHANDLE hWritePipe,
  LPSECURITY_ATTRIBUTES lpPipeAttributes,
  DWORD nSize
);
FoxPro declaration:
DECLARE INTEGER CreatePipe IN kernel32;
    INTEGER @ hReadPipe,;
    INTEGER @ hWritePipe,;
    STRING  @ lpPipeAttributes,;
    LONG      nSize

Parameters:
hReadPipe
[out] Pointer to a variable that receives the read handle for the pipe.

hWritePipe
[out] Pointer to a variable that receives the write handle for the pipe.

lpPipeAttributes
[in] Pointer to a SECURITY_ATTRIBUTES structure that determines whether the returned handle can be inherited by child processes.

nSize
[in] Size of the buffer for the pipe, in bytes.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
CreatePipe creates the pipe, assigning the specified pipe size to the storage buffer. CreatePipe also creates handles that the process uses to read from and write to the buffer in subsequent calls to the ReadFile and WriteFile functions.
Word Index links for the CreatePipe :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-12-18 09:25:35
Modified: 2004-12-18 09:27:24
Visited in last 7 days: 42
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Google
Advertise here!