SYSTEM_INFO systemInfo;
GetSystemInfo( &systemInfo );
int maxProcessors = static_cast<int>( systemInfo.dwNumberOfProcessors );
// cpu 갯수 만큼 생성
for( int i = 0; i < maxProcessors; ++i )
{
...
}
출처 : heagi2.blog.me/100064293628
'[ Programing ] > API' 카테고리의 다른 글
| 가상 피아노 프로그램 (0) | 2013.05.22 |
|---|---|
| _countof() 함수 => 배열의 수를 리턴 (0) | 2013.05.21 |
| 멀티 모니터 해상도 구하기 (0) | 2011.05.27 |
| GetLastError() 함수 (0) | 2011.05.27 |
| 고정키와 필터키 막기 (0) | 2011.05.27 |