Article View: borland.public.cppbuilder.nativeapi
Article #2142Re: Assistance with AccessCheck() requested
From: Andrue Cope
Date: Thu, 12 Apr 2007 08:19
Date: Thu, 12 Apr 2007 08:19
23 lines
1861 bytes
1861 bytes
Bob Gonder wrote: > As I read this, GENERIC_READ causes MapGenericMask to copy GenericRead > from gm, so we should be able to skip that part and just use > DWORD AccessMask = 0x20003; > Unless we are supposed to be getting GENERIC_MAPPING from the system? > > AccessCheck( something, something, AccessMask, &gm, etc. > > One wonders why you need to call MapGenericMask if you are going to be > passing gm anyway. I think I've tried it with and without. If you want to play around with it (and I suppose it has educational value concerning LDAP <g>) I've uploaded a BCB6 project 'AccessCheck.zip'. You'll need to change main() to use your login and domain details and you'll need to be running MS Exchange though unless you want to try for some other permission. -- Andrue Cope [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<461deb89$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.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:
<461cd310$1@newsgroups.borland.com> <remp1315lj4ontsa4qtu32e9rm0matb6rr@4ax.com> <461ceb64$1@newsgroups.borland.com> <vt8r1310fd4tgivoavro3ssdgadjomt8fr@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> <461ceb64$1@newsgroups.borland.com> <vt8r1310fd4tgivoavro3ssdgadjomt8fr@4ax.com> Date: Thu, 12 Apr 2007 09:19:22 +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: <461deb89$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1176365961 217.207.223.34 (12 Apr 2007 01:19:21 -0800) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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