Re: Weird problem with DACL and memory mapped file on Vista.



On Nov 29, 4:15 am, "Pavel Lebedinsky [MSFT]"
<pa...@xxxxxxxxxxxxxxxxxxxx> wrote:
I forgot to mention in the previous post that OpenFileMapping is
called with PAGE_READWRITE (successful !)

The first parameter in OpenFileMapping is an access mask, not a page
protection value. In your case, you should specify FILE_MAP_WRITE |
FILE_MAP_READ.

--
This posting is provided "AS IS" with no warranties, and confers no
rights.


Dont know how I managed to goof that up ... but good catch,

Thanks a bunch - that fixed it up.

--ks



.



Relevant Pages

  • Re: Weird problem with DACL and memory mapped file on Vista.
    ... The first parameter in OpenFileMapping is an access mask, ... protection value. ... you should specify FILE_MAP_WRITE | ...
    (microsoft.public.platformsdk.security)
  • Re: Password Protect 2 columns with different passwords
    ... tools|Options|Protect sheet ... It allows you to specify different passwords for different ranges. ... Look for Allow users to edit ranges under that dialog. ... By using worksheet protection the best i have been able to do is lock both ...
    (microsoft.public.excel)
  • [PATCH]: Staging: hv: Cleanup vmalloc calls
    ... specify different page protection bits based ... on the architecture. ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: Need help with sheet protection.
    ... If you're using Excel 2K3 you can ... specify what protection you would like to enforce when you are protecting ... you could specify that users can still format cells. ...
    (microsoft.public.excel.setup)