Using Win32 functions in Visual FoxPro Image Gallery
Pipe
..msdn
ConnectNamedPipe
CreateNamedPipe
CreatePipe
DisconnectNamedPipe
SetNamedPipeHandleState
Code examples:
Using named pipes for interprocess communication
SetNamedPipeHandleState
..msdn    Add comment     W32 Constants      Translate this page
Sets the read mode and the blocking mode of the specified named pipe. If the specified handle is to the client end of a named pipe and if the named pipe server process is on a remote computer, the function can also be used to control local buffering.
Code examples:
Using named pipes for interprocess communication
Declaration:
BOOL SetNamedPipeHandleState(
    HANDLE hNamedPipe,
    LPDWORD lpMode,
    LPDWORD lpMaxCollectionCount,
    LPDWORD lpCollectDataTimeout
);
FoxPro declaration:
DECLARE INTEGER SetNamedPipeHandleState IN kernel32;
    INTEGER hNamedPipe,;
    LONG @lpMode,;
    LONG lpMaxCollectionCount,;
    LONG lpCollectDataTimeout
Parameters:
hNamedPipe
[in] A handle to the named pipe instance.

[in] The new pipe mode. The mode is a combination of a read-mode flag and a wait-mode flag.

lpMaxCollectionCount
[in] The maximum number of bytes collected on the client computer before transmission to the server.

lpCollectDataTimeout
[in] The maximum time, in milliseconds, that can pass before a remote named pipe transfers information over the network.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
This is a part of pipe client code
hPipe = CreateFile(cPipename,;
        BITOR(GENERIC_WRITE, GENERIC_READ),;
        0, 0, OPEN_EXISTING, 0, 0)

IF hPipe <> INVALID_HANDLE_VALUE
        nPipeMode = PIPE_READMODE_MESSAGE
        nResult = SetNamedPipeHandleState(m.hPipe,;
                @nPipeMode, 0, 0)
ENDIF
Word Index links for the SetNamedPipeHandleState :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2007-01-17 14:42:43
Modified: 2007-01-17 14:47:56
Visited in last 7 days: 11
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.163.210.170)
13 sec.Example: 'How to create MD-5 and SHA-1 hash values from a string'
26 sec.Function: 'NetUserGetLocalGroups'
38 sec.Function: 'GetDefaultPrinter'
52 sec.Function: 'GetWindowThreadProcessId'
1.07 min.Function: 'ExtractAssociatedIcon'
1.25 min.Function: 'CeRemoveDirectory'
1.48 min.Function: 'WinHttpCloseHandle'
1.7 min.Function: 'StretchDIBits'
1.9 min.Function: 'JetGotoBookmark'
2.12 min.
Function group: 'Resource'
Google
Advertise here!