Fichier source en cours : FW - ComputerInfo.h






Voici le code source cpp :




	#ifndef COMPUTER_INFO_H
#define COMPUTER_INFO_H

namespace fw
{
	class ComputerInfo : public Singleton<ComputerInfo>
	{
	public:
		ComputerInfo();
		~ComputerInfo();

		bool CompareWindowsVersionMinor(const DWORD dwMinorVersion);
		bool CompareWindowsVersionMajor(const DWORD dwMajorVersion);

		void ParseOSName();
		void ParseCPU();
		void ParseMemory();
		void ParseHDSpace();

		std::string GetOsName();
		std::string GetCpuName();
		std::string GetCpuSpeed();
		std::string GetTotalMemory();
		std::string GetAvailableMemory();
		std::string GetHDSpace();

	private:
		std::string m_sOsName;
		std::string m_sCpuName;
		std::string m_sCpuSpeed;
		std::string m_sTotalMemory;
		std::string m_sAvailableMemory;
		std::string m_sHDDAvailableMemory;
	};
}

#endif