Article View: borland.public.cppbuilder.nativeapi
Article #3138Re: NamedPipe problem
From: T. Meyer
Date: Fri, 18 Aug 2006 07:46
Date: Fri, 18 Aug 2006 07:46
26 lines
1855 bytes
1855 bytes
Hello Gambit,
thanks for your help!
for the server I use the MSDN example at:
http://windowssdk.msdn.microsoft.com/en-us/library/ms690533.aspx
The creation of the pipe looks like:
Pipe[i].hPipeInst = CreateNamedPipe(
lpszPipename, // pipe name
PIPE_ACCESS_DUPLEX | // read/write access
FILE_FLAG_OVERLAPPED, // overlapped mode
PIPE_TYPE_MESSAGE | // message-type pipe
PIPE_READMODE_MESSAGE | // message-read mode
PIPE_WAIT, // blocking mode
NOOFINSTANCES, // number of instances
BUFSIZE*sizeof(TCHAR), // output buffer size
BUFSIZE*sizeof(TCHAR), // input buffer size
PIPE_TIMEOUT, // client time-out
NULL); // default security attributes
Any idea?
Thanks!
Technical Details
Message-ID:
<44e57049@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44e47a8e$1@newsgroups.borland.com> <44e4a098$1@newsgroups.borland.com> <44e4affa@newsgroups.borland.com> <44e4c819@newsgroups.borland.com> <44e56623$1@newsgroups.borland.com> <44e56eb5$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,facc6570cb7e9402 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "T. Meyer" <timon@mustek.de> Newsgroups: borland.public.cppbuilder.nativeapi References: <44e47a8e$1@newsgroups.borland.com> <44e4a098$1@newsgroups.borland.com> <44e4affa@newsgroups.borland.com> <44e4c819@newsgroups.borland.com> <44e56623$1@newsgroups.borland.com> <44e56eb5$2@newsgroups.borland.com> Subject: Re: NamedPipe problem Date: Fri, 18 Aug 2006 09:46:17 +0200 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 80.132.166.197 Message-ID: <44e57049@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155887177 80.132.166.197 (18 Aug 2006 00:46:17 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail