标签:
// windows_26_windows_system.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <windows.h>
void ShowSys( )
{
SYSTEM_INFO info = { 0 };
GetSystemInfo( &info );
printf( "内存页的大小:%d\n", info.dwPageSize );
printf( "可用最小地址:%X\n", info.lpMinimumApplicationAddress );
printf( "可用最大地址:%X\n", info.lpMaximumApplicationAddress );
printf( "区域的分配粒度:%d\n", info.dwAllocationGranularity );
printf( "处理器数量:%d\n", info.dwNumberOfProcessors );
printf( "处理器级别:%d\n", info.wProcessorLevel );
printf( "处理器版本号:%d\n", info.wProcessorRevision );
printf( "处理器类型:%X\n", info.dwProcessorType );
}
int _tmain(int argc, _TCHAR* argv[])
{
ShowSys( );
//错误的地址
/*
10000
7FFEFFFF
*/
//printf( "%d\n", *( (int *)0x7FFEFFFF+1 ) );
return 0;
}
26 windows_26_windows_system 系统信息
标签:
原文地址:http://www.cnblogs.com/nfking/p/5573497.html