🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

[bds2006] Can vcl appl use SetNamedSecurityInfo()?

#1038
From: dhoke
Date: Thu, 15 Nov 2007 13:01
20 lines
1498 bytes
How does one make straightforward use of SetNamedSecurityInfo() in a module 
that includes vcl.h?

Thanks.

#include <vcl.h>
#include <aclapi.h>

void somefunc(char *Name)
{
   SetNamedSecurityInfo(Name, SE_KERNEL_OBJECT, DACL_SECURITY_INFORMATION, 
0, 0, (PACL) NULL, NULL);
}

Compiling the above produces:
Error E2015 C:\Program Files\Borland\BDS\4.0\Include\aclapi.h 103: Ambiguity 
bet
ween 'PACCESS_MASK' and 'Windows::PACCESS_MASK'

etc. 
Technical Details
Message-ID: <473c4335$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ffb5c25f9ee4103d,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "dhoke" <dhoke.nojunk@east-shore.com>
From: "dhoke" <dhoke.nojunk@east-shore.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: [bds2006] Can vcl appl use SetNamedSecurityInfo()?
Date: Thu, 15 Nov 2007 08:01:16 -0500
Lines: 22
Organization: East Shore Technologies, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 68.236.150.245
Message-ID: <473c4335$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1195131701 68.236.150.245 (15 Nov 2007 05:01:41 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail