- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I used the function GetSystemInfo.
The function retured for wProcessorArchitecture = "IA-32" however the Windows System tells mi I have a 64Bit operating system,
whats going wrong here ?
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
My guess is that you built a 32-bit application. If you do that, you should get a value of 10 back, which means IA-32 running under WOW64. If you build the program as a 64-bit application it should return the value for x64.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
My guess is that you built a 32-bit application. If you do that, you should get a value of 10 back, which means IA-32 running under WOW64. If you build the program as a 64-bit application it should return the value for x64.
Ok, thats right, for the moment I build a 32 bit application. My Intension was to ask for the System architecture, not in which my application was build, So is GetSystemInfo the wrong mehtod ?
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
You can distinguish between IA-32 32-bit and IA-32 running under WOW64. See the Platform sample included with Intel Visual Fortran 10.1 for details.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
You can distinguish between IA-32 32-bit and IA-32 running under WOW64. See the Platform sample included with Intel Visual Fortran 10.1 for details.
I looked at the example, and if I compile as a Win32 I get 0 as return, which is IA-32
If I compile as x64, I get Intel or 64 or AMD64* as return
however the system Information tells me I have Intel core2 Quad CPU and a 64Bit operating System. So I'm still wondering, why I get IA-32
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I looked at the example, and if I compile as a Win32 I get 0 as return, which is IA-32
If I compile as x64, I get Intel or 64 or AMD64* as return
however the system Information tells me I have Intel core2 Quad CPU and a 64Bit operating System. So I'm still wondering, why I get IA-32
Try GetNativeSystemInfo().
Retrieves information about the current system to an application running under WOW64. If the function is called from a 64-bit application, it is equivalent to the GetSystemInfo function.
Or you can use GetSystemInfo() and then call IsWow64Process() to determine whether you are running 32-bit application on 64-bit OS.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Try GetNativeSystemInfo().
Retrieves information about the current system to an application running under WOW64. If the function is called from a 64-bit application, it is equivalent to the GetSystemInfo function.
Or you can use GetSystemInfo() and then call IsWow64Process() to determine whether you are running 32-bit application on 64-bit OS.
It seems, that, GetNativeSystemInfo is not implemented im my Kernel32 module, but however
I used IsWow64Process instead, I had to wrap it, or how it is called. But this workes.
Thanks