프로그래밍 팁/etc
OS 정보 알기
띠깜
2010. 4. 9. 15:49
윈도우 정보를 WMI를 쓰지않고 쉽게 버젼까지 알아 올 수 있는 소스입니다.
이 소스는 코드 프로젝트와 MSDN의 내용을 참조하여 만들었습니다.
OSVersion.h, OSVersion.cpp를 프로젝트에 포함 시킨 후,
#include "OSVersion.h"
void WhatIsOS()
{
COSVersion os;
CString strOS, strVer, str;
os.GetOSInfo(strOS, strVer);
str.Format("%s\n%s", strOS, strVer);
AfxMessageBox(str);
CString strOS, strVer, str;
os.GetOSInfo(strOS, strVer);
str.Format("%s\n%s", strOS, strVer);
AfxMessageBox(str);