|
|
#pragma once |
|
|
#include <string> |
|
|
#include <vector> |
|
|
#include <Windows.h> |
|
|
|
|
|
class Utilities |
|
|
{ |
|
|
public: |
|
|
|
|
|
static const std::string WeChatDefaultPath; |
|
|
static const std::string MmMojoDll; |
|
|
static const std::string MmMojo64Dll; |
|
|
|
|
|
|
|
|
static std::string GetWeChatDir(const std::string& path = ""); |
|
|
|
|
|
|
|
|
static std::string GetWeChatOcrExePath(); |
|
|
|
|
|
|
|
|
static void WriteBytesToFile(const std::string& filePath, const unsigned char* bytes, size_t length); |
|
|
|
|
|
|
|
|
static void CopyMmmojoDll(const std::string& wechatFullDir); |
|
|
|
|
|
|
|
|
static bool RemoveMmmojoDll(std::string& error); |
|
|
|
|
|
static std::string Base64Decode(const std::string& encoded_string); |
|
|
|
|
|
static std::vector<unsigned char> Base64Decode_Raw(const std::string& input); |
|
|
}; |