Using Virtual Memory in your application
Using Virtual Memory in your application
Using Virtual Memory in your application
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
來 例<br />
void ma<strong>in</strong>(){<br />
// Step 1: 0x003c0000 狀 <br />
Show<strong>Memory</strong>Status((LPVOID)0x003c0000);<br />
<br />
<br />
<br />
<br />
}<br />
PVOID buffer=<strong>Virtual</strong>Alloc((LPVOID)0x003c0000,<br />
64*1024,MEM_RESERVE,<br />
PAGE_READWRITE);<br />
if(buffer==NULL)<br />
ShowError();<br />
<br />
<br />
// Step 2: 0x003c0000+ page 狀 <br />
<br />
Show<strong>Memory</strong>Status((LPVOID)(0x003c0000+4*1024));