資源簡介
此包含了全部與內存相關的Windows API函數,包括內存管理,全局內存管理,本地內存管理,堆內存管理,虛擬內存管理等等全部API函數,每一個函數都有對應使用方式的源代碼例子,每個代碼都有詳細注釋的例子,便于您快速進行Windows的內存編程
代碼片段和文件信息
#include?
#include?
#define?DIV?1024
char?*divisor?=?“K“;
#define?WIDTH?7
void?main(int?argc?char?*argv[])
{
??MEMORYSTATUS?stat;
??GlobalMemoryStatus?(&stat);
??printf?(“The?MemoryStatus?structure?is?%ld?bytes?long.\n“
??????????stat.dwLength);
??printf?(“It?should?be?%d.\n“?sizeof?(stat));
??printf?(“%ld?percent?of?memory?is?in?use.\n“
??????????stat.dwMemoryLoad);
??printf?(“There?are?%*ld?total?%sbytes?of?physical?memory.\n“
??????????WIDTH?stat.dwTotalPhys/DIV?divisor);
??printf?(“There?are?%*ld?free?%sbytes?of?physical?memory.\n“
??????????WIDTH?stat.dwAvailPhys/DIV?divisor);
??printf?(“There?are?%*ld?total?%sbytes?of?paging?file.\n“
??????????WIDTH?stat.dwTotalPageFile/DIV?divisor);
??printf?(“There?are?%*ld?free?%sbyt
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1114??2005-10-14?15:03??內存處理\7.1.1GlobalMemoryStatus\Demo.cpp
?????文件???????4414??2005-10-14?15:03??內存處理\7.1.1GlobalMemoryStatus\GlobalMemoryStatus.dsp
?????文件????????561??2005-10-14?15:01??內存處理\7.1.1GlobalMemoryStatus\GlobalMemoryStatus.dsw
?????文件??????41984??2005-11-23?08:53??內存處理\7.1.1GlobalMemoryStatus\GlobalMemoryStatus.ncb
?????文件??????53760??2005-11-23?08:53??內存處理\7.1.1GlobalMemoryStatus\GlobalMemoryStatus.opt
?????文件????????270??2005-11-23?08:53??內存處理\7.1.1GlobalMemoryStatus\GlobalMemoryStatus.plg
?????文件???????1011??2005-10-14?15:13??內存處理\7.4.2HeapCreate\HeapCreate.cpp
?????文件???????4584??2005-10-14?15:11??內存處理\7.4.2HeapCreate\HeapCreate.dsp
?????文件????????545??2005-10-14?15:13??內存處理\7.4.2HeapCreate\HeapCreate.dsw
?????文件??????41984??2005-11-23?08:53??內存處理\7.4.2HeapCreate\HeapCreate.ncb
?????文件??????53760??2005-11-23?08:53??內存處理\7.4.2HeapCreate\HeapCreate.opt
?????文件???????1753??2005-11-23?08:53??內存處理\7.4.2HeapCreate\HeapCreate.plg
?????文件???????1232??2005-10-14?15:11??內存處理\7.4.2HeapCreate\ReadMe.txt
?????文件????????297??2005-10-14?15:11??內存處理\7.4.2HeapCreate\StdAfx.cpp
?????文件????????667??2005-10-14?15:11??內存處理\7.4.2HeapCreate\StdAfx.h
?????文件???????3819??2005-10-14?15:16??內存處理\7.5.1VirtualAlloc\Demo.cpp
?????文件???????4348??2005-10-14?15:16??內存處理\7.5.1VirtualAlloc\VirtualAlloc.dsp
?????文件????????549??2005-10-14?15:16??內存處理\7.5.1VirtualAlloc\VirtualAlloc.dsw
?????文件??????41984??2005-11-23?08:54??內存處理\7.5.1VirtualAlloc\VirtualAlloc.ncb
?????文件??????53760??2005-11-23?08:54??內存處理\7.5.1VirtualAlloc\VirtualAlloc.opt
?????文件???????1306??2005-11-23?08:53??內存處理\7.5.1VirtualAlloc\VirtualAlloc.plg
?????目錄??????????0??2010-10-08?09:52??內存處理\7.1.1GlobalMemoryStatus
?????目錄??????????0??2010-10-08?09:52??內存處理\7.4.2HeapCreate
?????目錄??????????0??2010-10-08?09:52??內存處理\7.5.1VirtualAlloc
?????目錄??????????0??2010-10-08?09:52??內存處理
-----------?---------??----------?-----??----
???????????????313702????????????????????25
- 上一篇:WinPcap_4.1.2
- 下一篇:lcd12864的fpga 驅動程序
評論
共有 條評論