Article View: borland.public.cppbuilder.nativeapi
Article #7445What's the maximal Length of the Name in CreateMailslot()
From: Phuoc Can HUA
Date: Sun, 30 Jan 2005 12:28
Date: Sun, 30 Jan 2005 12:28
21 lines
1693 bytes
1693 bytes
I tried to create 2 mailslots with the name "\\\\.\\mailslot\\downstreamX"
while X=0,1
I always received an error 183 (Cannot create a file when that file
already exists.) when I tried to create the 2nd one. It doesn't work until
I change the name to dnstrmX. I guess that my slot name were truncated so
that I got a name conflict.
My questions:
1) What's the maximal length?
2) Is it compiler dependent? because...
I've got a sample program from net which is using the name smschildX.
The executable (not compiled by myself) is working fine. But when I tried
with dnstreamX (same length as smschildX) in my program it failed with
same error.
thanks
Phuoc Can HUA
--
--------------------------------------------------------------------------
www.huaonline.com
Technical Details
Message-ID:
<opsle0x5goypkypy@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!panix!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,dea5be0b0abc8a41,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: What's the maximal Length of the Name in CreateMailslot()
From: Phuoc Can HUA <home}-a-t-{huaonline-dot}com>
Content-Type: text/plain; format=flowed; charset=iso-8859-15
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Date: Sun, 30 Jan 2005 23:28:43 +1100
Message-ID: <opsle0x5goypkypy@newsgroups.borland.com>
User-Agent: Opera7.21/Win32 M2 build 3218
NNTP-Posting-Host: 220.240.233.189
X-Trace: newsgroups.borland.com 1107088172 220.240.233.189 (30 Jan 2005 04:29:32 -0800)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!panix!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail