🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: URGENT! NULL DACL example

#3109
From: Tumurbaatar S.
Date: Mon, 09 Oct 2006 02:34
29 lines
1788 bytes
THANK YOU!


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:451ad02b$1@newsgroups.borland.com...
>
> "Tumurbaatar S." <spam_tumur@magicnet.mn> wrote in message
> news:451aac93@newsgroups.borland.com...
>
>> My app needs to create a mailslot or pipe object with no
>> access restriction, i.e. everyone from LAN can access.
>> I searched the Internet and found some examples, but
>> did not find straight code that uses NULL DACL.
>
>    SECURITY_DESCRIPTOR sd;
>    InitializeSecurityDescriptor(&sd, SECURITY_DESCRIPTOR_REVISION);
>    SetSecurityDescriptorDacl(&sd, TRUE, NULL, FALSE);
>
>    SECURITY_ATTRIBUTES sa;
>    sa.nLength = sizeof(SECURITY_ATTRIBUTES);
>    sa.lpSecurityDescriptor = &sd;
>    sa.bInheritHandle = FALSE;
>
>    // use sa where needed ...
>
>
> Gambit
>
> 
Technical Details
Message-ID: <4529b786@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <451aac93@newsgroups.borland.com> <451ad02b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,daf2988cc465747b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Tumurbaatar S." <spam_tumur@magicnet.mn>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <451aac93@newsgroups.borland.com> <451ad02b$1@newsgroups.borland.com>
Subject: Re: URGENT! NULL DACL example
Date: Mon, 9 Oct 2006 10:34:39 +0800
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
NNTP-Posting-Host: 202.170.80.81
Message-ID: <4529b786@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1160361862 202.170.80.81 (8 Oct 2006 19:44:22 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail