Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by Tumurbaatar S.
Wed, 27 Sep 2006 16:52
URGENT! NULL DACL example
Author: Tumurbaatar S.
Date: Wed, 27 Sep 2006 16:52
Date: Wed, 27 Sep 2006 16:52
5 lines
1095 bytes
1095 bytes
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. Any help?
Re: URGENT! NULL DACL example
Author: 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
Re: URGENT! NULL DACL example
Author: Tumurbaatar S.
Date: Mon, 09 Oct 2006 02:34
Date: Mon, 09 Oct 2006 02:34
29 lines
1788 bytes
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 > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads