The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Germain on January 21, 2010, 02:17:30 AM

Title: VirtualQuery and PAGE_NOACCESS
Post by: Germain on January 21, 2010, 02:17:30 AM
Hi to everybody :bg

I've a question about VirtualQuery and PAGE_NOACCESS....

My question is, if I put an address as parameter to VirtualQuery, wich corresponds to a page protected as PAGE_NOACCESS,
my app will crash?

If this happens, can I add to my address the RegionSize?
But, if I could, after my app has crashed, and when my code go to my SEH, could I do that? or the value of RegionSize will be NULL?

Thanks in advance :wink
- Germain
Title: Re: VirtualQuery and PAGE_NOACCESS
Post by: dedndave on January 21, 2010, 03:49:56 AM
i don't think it will crash
it is only used to tell you the access rights of a block of memory
of course, you need to have write access on the ouptut buffer   :bg
Title: Re: VirtualQuery and PAGE_NOACCESS
Post by: Germain on January 21, 2010, 04:16:15 AM
Quote from: dedndave on January 21, 2010, 03:49:56 AM
i don't think it will crash
it is only used to tell you the access rights of a block of memory
of course, you need to have write access on the ouptut buffer   :bg

Ok!

Thanks  :dance: