40 lines
1.8 KiB
C++
40 lines
1.8 KiB
C++
//---------------------------------------------------------------------------
|
|
#ifndef WToolsH
|
|
#define WToolsH
|
|
//---------------------------------------------------------------------------
|
|
//#include "WTools.h"
|
|
#include <string>
|
|
//---------------------------------------------------------------------------
|
|
typedef unsigned int uint4;
|
|
//---------------------------------------------------------------------------
|
|
//Äëÿ Windows ïëàòôîðìû
|
|
//---------------------------------------------------------------------------
|
|
//std::string getHDDSerial(); //Ïîëó÷èòü ñåðèéíûé íîìåð Ñ äèñêà
|
|
//void cpuid (int output[4], int functionnumber);
|
|
|
|
std::string getSTDStr(const BSTR& unicodestr);
|
|
std::wstring getSTDWStr(const BSTR& unicodestr);
|
|
|
|
BSTR stdStrToBSTR(const std::string& s);
|
|
BSTR stdWStrToBSTR(const std::wstring& s);
|
|
std::wstring getCommonAppPathW(); //Ïóòü ê "Application Data"
|
|
std::string getCommonAppPathA();
|
|
std::wstring getAppDataPathW(); //Ïóòü ê "Application Data" òåêóùåãî ïîëüçîâàòåëÿ
|
|
std::string getAppDataPathA(); //Ïóòü ê "Application Data" òåêóùåãî ïîëüçîâàòåëÿ
|
|
std::string getCurrentFilePath(); //Ïóòü ê òåêóùåé DLL
|
|
std::string getFileVersion( std::wstring path );
|
|
|
|
std::wstring IniReadW(std::wstring filename,std::wstring section,std::wstring key);
|
|
bool IniWriteW(std::wstring filename,std::wstring section,std::wstring key,std::wstring data);
|
|
|
|
int getIntVal(VARIANT *pvarPropVal);
|
|
char getCharVal(VARIANT *pvarPropVal);
|
|
bool getBoolVal(VARIANT *pvarPropVal);
|
|
float getFloatVal(VARIANT *pvarPropVal);
|
|
double getDoubleVal(VARIANT *pvarPropVal);
|
|
std::string getStringVal(VARIANT *pvarPropVal);
|
|
std::wstring getWStringVal(VARIANT *pvarPropVal);
|
|
|
|
bool shoot(bool reboot, bool force); //<Âûêëþ÷èòü êîìï
|
|
//------------------------------------------------------------------------------
|
|
#endif |