일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ipad
- mean
- Python
- 알고리즘
- SPL
- GitHub
- DFS
- 삼성소프트웨어멤버십
- dataframe
- RNN
- imread
- Button
- keras
- install
- javascript
- E-P1
- pandas
- pip
- GT-S80
- pycharm
- CNN
- Splunk
- mariadb
- Numpy
- LSTM
- Series
- Lotto
- index
- SciPy
- synology
Archives
- Today
- Total
잠토의 잠망경
GetySysInfo 시스템의 정보를 얻기위한 api 본문
#include#include //ms-help://MS.MSDNQTR.v90.ko/sysinfo/base/system_info_str.htm int main(void) { SYSTEM_INFO wonSystem_info; GetSystemInfo(&wonSystem_info); printf("My System Info\n"); //The processor architecture. This member can be one of the following values. printf("CPU: "); switch (wonSystem_info.wProcessorArchitecture) { case PROCESSOR_ARCHITECTURE_AMD64: printf("x64(AMD or Intel");break; case PROCESSOR_ARCHITECTURE_IA64: printf("IPF");break; case PROCESSOR_ARCHITECTURE_INTEL: printf("x86");break; case PROCESSOR_ARCHITECTURE_UNKNOWN: printf("Unknown processor");break; default: break; } printf("\n"); //The page size and the granularity of page protection and commitment. This is the page size used by the VirtualAlloc function. printf("Page Size: %d", wonSystem_info.dwPageSize); printf("\n"); //A pointer to the lowest memory address accessible to applications and dynamic-link libraries (DLLs). printf("lpMinimumApplicationAddress :%d",wonSystem_info.lpMinimumApplicationAddress); printf("\n"); //A pointer to the highest memory address accessible to applications and DLLs. printf("lpMaximumApplicationAddress :%d",wonSystem_info.lpMaximumApplicationAddress); printf("\n"); //A mask representing the set of processors configured into the system. Bit 0 is processor 0; bit 31 is processor 31. printf("dwActiveProcessorMask :%d",wonSystem_info.dwActiveProcessorMask ); printf("\n"); //The number of processors in the system. printf("dwNumberOfProcessors :%d",wonSystem_info.dwNumberOfProcessors ); printf("\n"); //An obsolete member that is retained for compatibility. //Use the wProcessorArchitecture, wProcessorLevel, and wProcessorRevision members to determine the type of processor. printf("dwProcessorType : "); switch (wonSystem_info.dwProcessorType) { case PROCESSOR_INTEL_386: printf("Intel 386");break; case PROCESSOR_INTEL_486: printf("Intel 486");break; case PROCESSOR_INTEL_PENTIUM: printf("Intel Pentium");break; case PROCESSOR_INTEL_IA64: printf("64bit");break; case PROCESSOR_AMD_X8664: printf("AMD 64bit");break; default: break; } printf("\n"); //The granularity for the starting address at which virtual memory can be allocated. For more information, see VirtualAlloc. printf("dwAllocationGranularity :%d",wonSystem_info.dwAllocationGranularity ); printf("\n"); //The architecture-dependent processor revision. //The following table shows how the revision value is assembled for each type of processor architecture. printf("wProcessorRevision :%d",wonSystem_info.wProcessorRevision ); printf("\n"); return 0; }
결과 화면
Comments