Thread View: cn.comp.lang.vc
2 messages
2 total messages
Started by xfan
Mon, 11 Jan 2010 04:55
getsysteminfo���⣬��̣�
Author: xfan
Date: Mon, 11 Jan 2010 04:55
Date: Mon, 11 Jan 2010 04:55
30 lines
1578 bytes
1578 bytes
#include<stdio.h>
#include<conio.h>
#include<windows.h>
int main()
{
SYSTEM_INFO sysinfo;
void WINAPI GetSystemInfo(LPSYSTEM_INFO sysinfo);
printf("%d\n",sysinfo.wProcessorArchitecture);
getch();
return 0;
}
��������52428����msdn�ϸ��ֵ��
PROCESSOR_ARCHITECTURE_AMD64
9
x64 (AMD or Intel)
PROCESSOR_ARCHITECTURE_IA64
6
Intel Itanium Processor Family (IPF)
PROCESSOR_ARCHITECTURE_INTEL
0
x86
PROCESSOR_ARCHITECTURE_UNKNOWN
0xffff
Unknown architecture.
���ܶ�������ô�����أ�
Re: getsysteminfo���⣬��̣�
Author: xfan
Date: Mon, 11 Jan 2010 05:03
Date: Mon, 11 Jan 2010 05:03
36 lines
1827 bytes
1827 bytes
��Ϊ GetSystemInfo(&sysinfo);������
"xfan" <gaodesen0305@yahoo.com.cn> д����Ϣ
news:hieavm$ndb$1@www.shinco.com...
> #include<stdio.h>
> #include<conio.h>
> #include<windows.h>
>
> int main()
> {
> SYSTEM_INFO sysinfo;
>
> void WINAPI GetSystemInfo(LPSYSTEM_INFO sysinfo);
> printf("%d\n",sysinfo.wProcessorArchitecture);
> getch();
> return 0;
> }
> ��������52428����msdn�ϸ��ֵ��
> PROCESSOR_ARCHITECTURE_AMD64
> 9
> x64 (AMD or Intel)
> PROCESSOR_ARCHITECTURE_IA64
> 6
> Intel Itanium Processor Family (IPF)
>
> PROCESSOR_ARCHITECTURE_INTEL
> 0
> x86
>
> PROCESSOR_ARCHITECTURE_UNKNOWN
> 0xffff
> Unknown architecture.
>
> ���ܶ�������ô�����أ�
>
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads