内存信息获取
#include <Windows.h>#include <iostream>
int main()
{
SYSTEM_INFO info = {0};
GetSystemInfo(&info);
printf("内存页的大小:%d\n",info.dwPageSize);
printf("可用最小地址:%p\n",info.lpMinimumApplicationAddress);
printf("可用最大地址:%p\n",info.lpMaximumApplicationAddress);
printf("区域分配粒度:%d\n",info.dwAllocationGranularity);
return 0;
}
搜索能够找到输入的用户名和注册码 加油 typedef struct _SYSTEM_INFO {
union {
DWORD dwOemId; // Obsolete field...do not use
struct {
WORD wProcessorArchitecture;
WORD wReserved;
} DUMMYSTRUCTNAME;
} DUMMYUNIONNAME;
DWORD dwPageSize;
LPVOID lpMinimumApplicationAddress;
LPVOID lpMaximumApplicationAddress;
DWORD_PTR dwActiveProcessorMask;
DWORD dwNumberOfProcessors;
DWORD dwProcessorType;
DWORD dwAllocationGranularity;
WORD wProcessorLevel;
WORD wProcessorRevision;
} SYSTEM_INFO, *LPSYSTEM_INFO;
这是 SYSTEM_INFO 的代码,要是有人能详细解释一下就更好了~~~ {:5_106:} 仙姐加油 仙仙要变成大牛咯~{:7_123:} {:5_106:}前排支持~ 小仙加油~
页:
[1]