Utils.h 384 B

12345678910111213141516
  1. #pragma once
  2. #include <windows.h>
  3. #include <string>
  4. #include <vector>
  5. // 工具函数声明
  6. namespace Utils
  7. {
  8. // 字符串转字节数组
  9. std::vector<BYTE> ConvertHexStringToBytes(const std::string &hex_string);
  10. std::string ConvertBytesToHexString(const std::vector<BYTE> &bytes);
  11. // 获取当前可执行文件目录
  12. std::string GetExecutableDirectory();
  13. }