Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
..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)
BOOL CreatePipe(
  PHANDLE hReadPipe,
  PHANDLE hWritePipe,
  DWORD nSize
FoxPro declaration:
DECLARE INTEGER CreatePipe IN kernel32;
    INTEGER @ hReadPipe,;
    INTEGER @ hWritePipe,;
    STRING  @ lpPipeAttributes,;
    LONG      nSize

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

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

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

[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 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: 6
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2017 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.6.34), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
6 sec.Example: 'How to print FoxPro form'
13 sec.Function: 'WSAStartup'
16 sec.Function: 'mmioAscend'
Function group: 'Windows Multimedia'
19 sec.Function: 'WNetAddConnection'
Function group: 'Windows Networking'
22 sec.Example: 'Peer-to-peer LAN messenger built with Mailslot API functions'
27 sec.Example: 'Printing Image File, programmatically set print page orientation to landscape'
30 sec.Function: 'GetMenuItemCount'
34 sec.Function: 'CeRapiInit'
Function group: 'Remote Application Programming (RAPI)'
36 sec.
Function group: 'Remote Access Service (RAS)'
39 sec.Example: 'How to ping a remote site using ICMP API calls'
Advertise here!