#pragma once
#include "BaseInclude.h"
class CGetOSVersion
{
public:
CGetOSVersion();
~CGetOSVersion();
//Functions
public:
/// <summary>
/// ¶ÔÍâÌṩ½Ó¿Ú,Êä³ö±¾µØÔËÐвÙ×÷ϵͳµÄ°æ±¾ÐÅÏ¢
/// </summary>
/// <param name="iOSVerNum">²Ù×÷ϵͳ´ó°æ±¾ºÅ
/// 1,windows 2000
/// 2,windows XP
/// 3,Windows XP 64
/// 4,windows vista
/// 5,windows 7
/// 6,windows 8
/// 7,windows 8
/// 8.windows 10
/// 9.windows 11
/// </param>
/// <param name="iSubVer">²Ù×÷ϵͳС°æ±¾ºÅ£¬Ò»°ãÃèÊöΪÈ磺SP1</param>
/// <returns>ÃèÊö²Ù×÷ϵͳµÄ°æ±¾¼ò³Æ£¬Èç "windows XP SP1" </returns>
std::string GetOSVersionDesc(int& iOSVerNum, int& iSubVer,bool& bIsServer);
private:
/// <summary>
/// ÄÚ²¿µ÷Óýӿڣ¬¼ì²â±¾µØ²Ù×÷ϵͳ°æ±¾ÐÅÏ¢
/// </summary>
/// <returns>bool,ֵΪÕæÔò±íʾ¼ì²â³É¹¦</returns>
bool CheckOSVer();
//Attributes
private:
int m_iOSMainNum;
int m_iOSSubNum;
bool m_bIsServer;
std::string m_strOSDesc;
};
|