关于PAGE_NOACCESS

来源:互联网 发布:圣诞节礼物 知乎 编辑:程序博客网 时间:2024/06/17 18:36

The following table lists the memory-protection options provided by Windows. You must specify one of the following values when allocating or protecting a page in memory.

ValueMeaningPAGE_EXECUTEEnables execute access to the committed region of pages. An attempt to read or write to the committed region results in an access violation.PAGE_EXECUTE_READEnables execute and read access to the committed region of pages. An attempt to write to the committed region results in an access violation.PAGE_EXECUTE_READWRITEEnables execute, read, and write access to the committed region of pages.PAGE_EXECUTE_WRITECOPYEnables execute, read, and write access to the committed region of pages. The pages are shared read-on-write and copy-on-write.PAGE_NOACCESSDisables all access to the committed region of pages. An attempt to read from, write to, or execute the committed region results in an access violation exception, called a general protection (GP) fault.(memory中常看到的?形式)PAGE_READONLYEnables read access to the committed region of pages. An attempt to write to the committed region results in an access violation. If the system differentiates between read-only access and execute access, an attempt to execute code in the committed region results in an access violation.PAGE_READWRITEEnables both read and write access to the committed region of pages.PAGE_WRITECOPYGives copy-on-write protection to the committed region of pages.

 

Windows Me/98/95:  This flag is not supported.