??Windows????????С???ó????е????????
???????????? ???????[ 2013/1/8 15:51:37 ] ????????
????Windows?????????????????????в???
?????????????檔???????????????????????????顣
?????????????????????????????????????????????????? ???????е?????????乲???????
???????????????????????????С?????
????????????VirtualAlloc??malloc ??new?????????????????????????????????????仰??????????
????VirtualAlloc????????????????????????????????????????4k??????????С?????????
????malloc????VirtualAllocū??????棬????????????????y???????????????Щ???????????????С
????VirtualAlloc??????4KB???λ????棬?????????????????????????????????????????????????????????
?????е?????malloc??????????????????????濪??????????????????????
??????????????????????檔
????Windows?????Щ??????????????? ???????????????????Щ??????????????????????????Щ??????????????????????????????洢????
?????????????????
???????????????VirtualAlloc?????????У?
PVOID VirtualAlloc(
PVOID pvAddress??
SIZE_T dwSize??
DWORD fdwAllocationType??
DWORD fdwProtect);
????pvAddress???????????????????????????е??????е?????顣
??????????NULL????????????????????????
?????????pvAddress??????????????????????????????????????????????NULL??
???????VirtualAlloc????????????????????????????????????????????
????dwSize????????????????????????С??????????λ?? ???????cpu????С???????????????????????????????????64kB????????????????
????fdwAllocationType????????????????????????????????????洢?????????????????????MEM_RESERVE????????????????????????????????????????????NULL??pvAddress??????MEM_TOP_DOWN??MEM_RESERVE??????а?λ???????
????fdwProtect???????????????????????????????????????????????洢???????κ????á????????????????????????δ???????????????洢???????·???Υ?檔
?????????????????????????????????????????????????????Ч???????
????????????洢??
??????????????????????????????洢??????????????????е???????洢???????????????????洢??????????????????С??????????С??????????????????洢????????????VirtualAlloc??????????????????MEM_COMMIT?????fdwAllocationType?????
????pvAddress????????????洢?????????????????
????dwSize???????洢?????С??????????λ??????????????????????????????洢????
?????????????????С?????????????
??????????????????洢??
?????????????????????????????????????洢??????????????VirtualAlloc??????MEM_RESERVE???MEM_COMMIT??λ???????????fdwAllocationType?????????????????????????洢????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11