Article View: borland.public.cppbuilder.nativeapi
Article #2138Re: Assistance with AccessCheck() requested
From: Andrue Cope
Date: Wed, 11 Apr 2007 14:06
Date: Wed, 11 Apr 2007 14:06
36 lines
2392 bytes
2392 bytes
Bob Gonder wrote: > I'm sorry I have no experience in this, but reading the doc on > AccessCheck, it looks like it would be extreemely easy to not get the > parameters right. > > From this: > "...receives the privileges used to perform the access validation. If > no privileges were used... " > It sounds like it didn't need to use any privilage sets to answer > the querry. Maybe because the question didn't actually ask anything? > > Perhaps some actual code would help others rule that out? Yeah that's possible I suppose. It's certainly not obvious what I should be asking for and what GENERIC_MAPPING should be. From my manual traversal of the ACL I can see that the single ACE has permissions of 0x20003 and so I've tried asking for that, for 0x3 and for 0x20000 but with no luck. I think that if I don't create the correct GENERIC_MAPPING structure it could go wrong there as well. Unfortunately it's not entirely clear how one goes about populating that structure. I can see why something like it is needed but that's not the same as knowing how to populate it :-/ Unfortunately for our application we can't just try to open the mailbox. We are effectively doing that ourselves and are just trying to provide the same level of security that Outlook does. I seem to have wandered into an area of Windows that no-one knows anything much about which is always fun :) -- Andrue Cope [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<461ceb64$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<461cd310$1@newsgroups.borland.com> <remp1315lj4ontsa4qtu32e9rm0matb6rr@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8e080841c8729530 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope" <no.spam@not.a.valid.address> Subject: Re: Assistance with AccessCheck() requested Newsgroups: borland.public.cppbuilder.nativeapi References: <461cd310$1@newsgroups.borland.com> <remp1315lj4ontsa4qtu32e9rm0matb6rr@4ax.com> Date: Wed, 11 Apr 2007 15:06:29 +0100 User-Agent: XanaNews/1.18.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <461ceb64$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1176300388 217.207.223.34 (11 Apr 2007 07:06:28 -0800) Lines: 36 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail