重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
SYSTEM_INFO sysInfo = {0};
GetSystemInfo(&sysInfo);
DWORD dwMinAddr = (DWORD)sysInfo.lpMinimumApplicationAddress;
DWORD dwMaxAddr = (DWORD)sysInfo.lpMaximumApplicationAddress;
MEMORY_BASIC_INFORMATION memBase;
int i = 0;
for (dwMinAddr; dwMinAddr < dwMaxAddr;)
{
if (VirtualQuery((LPVOID)dwMinAddr, &memBase, sizeof(memBase)) == sizeof(memBase))
{
wprintf(_T("%d %x %x %d\r\n"),i ++,memBase.BaseAddress, memBase.RegionSize,memBase.AllocationProtect);
}
dwMinAddr += memBase.RegionSize;
}
typedef struct _MEMORY_BASIC_INFORMATION
{
PVOID BaseAddress;
PVOID AllocationBase;
DWORD AllocationProtect;
DWORD RegionSize;
DWORD State;
DWORD Protect;
DWORD Type;
} MEMORY_BASIC_INFORMATION;
创新互联致力于互联网网站建设与网站营销,提供成都做网站、成都网站建设、网站开发、seo优化、网站排名、互联网营销、微信小程序、公众号商城、等建站开发,创新互联网站建设策划专家,为不同类型的客户提供良好的互联网应用定制解决方案,帮助客户在新的全球化互联网环境中保持优势。