Article View: borland.public.cppbuilder.nativeapi
Article #3078Re: URGENT! NULL DACL example
From: Remy Lebeau (TeamB)
Date: Wed, 27 Sep 2006 19:23
Date: Wed, 27 Sep 2006 19:23
22 lines
1593 bytes
1593 bytes
"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:
<451ad02b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<451aac93@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <451aac93@newsgroups.borland.com> Subject: Re: URGENT! NULL DACL example Date: Wed, 27 Sep 2006 12:23:14 -0700 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <451ad02b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1159385131 69.169.4.232 (27 Sep 2006 12:25:31 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail