Programming/Win_API
윈도우즈 API - 메모리 관련 함수1 (VirtualAlloc, VirtualFree, VirtualProtect)
bbolmin
2012. 9. 7. 16:24
VirtualAlloc()
VirtualFree()
VirtualProtect()
- VirtualAlloc : 가상 메모리 할당
- VirtualFree : 가상 메모리 해제
- VirtualProtect() : 메모리 보호 설정 값 변경
+
BOOL VirtualLock(LPVOID lpAddress, DWORD dwSize); : [RAM <-> 페이징 파일] 과정을 Lock시켜 항상 RAM에 존재.
BOOL VirtualUnlock(LPVOID lpAddress, DWORD dwSize); : 해제