사용중인 OS 정보 얻기
System.Environment.OSVersion 을 사용
System.Environment.OSVersion.Platform : 플랫폼 명
System.Environment.OSVersion.Version.Major : 주 버전
System.Environment.OSVersion.Version.Minor : 부 버전
System.Environment.OSVersion.Version.Revision : 수정 버전
System.Environment.OSVersion.Build : 빌드 번호
Platform
PlatformID 값을 리턴하며, 그 값은 다음의 3가지 열거 값을 갖는다.
Win32NT Operating System is Windows NT
Win32Windows Operating System is Windows 95 or later
Win32S Operating System is Win32s running on a 16-bit version of Windows
// Get the Operating System From Environment Class.
OperatingSystem os = Environment.OSVersion;
// Get the version information.
Version vs = os.Version;
this.m_nMajorVer = vs.Major;
this.m_nMinorVersion = vs.Minor;
this.m_nRevision = vs.Revision;
this.m_nBuildNumber = vs.Build;
// Get the service pack information.
this.m_strServicePack = os.CSD;
cf) http://blog.paran.com/joosebio/20551547
System.Environment.OSVersion 을 사용
System.Environment.OSVersion.Platform : 플랫폼 명
System.Environment.OSVersion.Version.Major : 주 버전
System.Environment.OSVersion.Version.Minor : 부 버전
System.Environment.OSVersion.Version.Revision : 수정 버전
System.Environment.OSVersion.Build : 빌드 번호
Platform
PlatformID 값을 리턴하며, 그 값은 다음의 3가지 열거 값을 갖는다.
Win32NT Operating System is Windows NT
Win32Windows Operating System is Windows 95 or later
Win32S Operating System is Win32s running on a 16-bit version of Windows
// Get the Operating System From Environment Class.
OperatingSystem os = Environment.OSVersion;
// Get the version information.
Version vs = os.Version;
this.m_nMajorVer = vs.Major;
this.m_nMinorVersion = vs.Minor;
this.m_nRevision = vs.Revision;
this.m_nBuildNumber = vs.Build;
// Get the service pack information.
this.m_strServicePack = os.CSD;
cf) http://blog.paran.com/joosebio/20551547