News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

VirtualQuery and PAGE_NOACCESS

Started by Germain, January 21, 2010, 02:17:30 AM

Previous topic - Next topic

Germain

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

dedndave

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

Germain

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: