티스토리 뷰
// C++
// VC : suppress error messages about obsolete & deprecated functions
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdlib>
using namespace std;
int main(int argc, char *argv[])
{
if (const char *myArchitecture = getenv("PROCESSOR_ARCHITECTURE"))
cout << "PROCESSOR_ARCHITECTURE : " << myArchitecture << endl;
if (const char *myArchiteW6432 = getenv("PROCESSOR_ARCHITEW6432"))
cout << "PROCESSOR_ARCHITEW6432 : " << myArchiteW6432 << endl;
return EXIT_SUCCESS;
}
/* Output
PROCESSOR_ARCHITECTURE : x86
PROCESSOR_ARCHITEW6432 : AMD64
*/
'Series' 카테고리의 다른 글
Detect Windows Architecture [C++] CString.GetEnvironmentVariable (0) | 2018.06.25 |
---|---|
Detect Windows Architecture [C++] GetEnvironmentVariable (0) | 2018.06.25 |
Detect Windows Architecture [C#] Environment.GetEnvironmentVariable (0) | 2018.06.25 |
Detect Windows Architecture [C#] Directory.Exists (Not Good Solution) (0) | 2018.06.25 |
Argument Parameter [Python] Keyword Arguments (0) | 2018.06.24 |