🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17634

Named Pipe from DOS app

#17634
From: Denville Longhurst
Date: Fri, 07 Mar 2003 15:52
26 lines
1905 bytes
Has anyone managed to set up a named pipe from a DOS app (client) running in
a DOS box to a Win32 app (OS is XP Pro)?  I can get the DOS app to open the
pipe (because it returns from ConnectNamedPipe() at the server) but it
immediately fails with an access denied error.  I have tried to open up the
server pipe to anyone:

SECURITY_ATTRIBUTES SecurityAttributes ;
SECURITY_DESCRIPTOR SecurityDescriptor ;

    InitializeSecurityDescriptor( &SecurityDescriptor,
SECURITY_DESCRIPTOR_REVISION ) ;
    SetSecurityDescriptorDacl( &SecurityDescriptor, TRUE, NULL, FALSE ) ;
    SecurityAttributes.nLength = sizeof(SECURITY_ATTRIBUTES) ;
    SecurityAttributes.bInheritHandle = FALSE ;
    SecurityAttributes.lpSecurityDescriptor = &SecurityDescriptor ;

     hPipe = CreateNamedPipe( cName, PIPE_ACCESS_INBOUND,
        PIPE_TYPE_BYTE | PIPE_WAIT, 1, 0, 0, nInbufSize,
&SecurityAttributes ) ;

Is there anything more I can do, or is it a non-starter?

Many thanks,

Denville
Leeds, England.
Technical Details
Message-ID: <3e68c03a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,29ce32d559b835fb,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-07 07:57:40 PST
From: "Denville Longhurst" <Denville@metco.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Named Pipe from DOS app
Date: Fri, 7 Mar 2003 15:52:40 -0000
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 80.0.6.116
Message-ID: <3e68c03a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047052346 80.0.6.116 (7 Mar 2003 07:52:26 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail