摘要: 代码样例 #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <conio.h> #include <string> #include <vector> #include <map> 阅读全文
posted @ 2024-07-08 15:26 倚剑问天 阅读(79) 评论(0) 推荐(0)
摘要: 正文 将字符串转换成等效int数组 std::vector<uint32_t> convert_wstring_to_int_array(const wchar_t* str) { std::vector<uint32_t> vec; for (size_t i = 0; i < wcslen(st 阅读全文
posted @ 2024-04-19 19:56 倚剑问天 阅读(260) 评论(0) 推荐(0)
摘要: 前言 本文旨在记录在较新版本的 Visual Studio(2019)中编译 Luabind 这个较为陈旧的 C++/Lua 绑定库时,所需进行的代码兼容性修改与完整流程。由于该库已停止维护,网上参考资料大多基于旧版开发环境,因此将实际可行的步骤整理如下,供参考。 请注意: Luabind 依赖大量 阅读全文
posted @ 2024-04-16 11:44 倚剑问天 阅读(265) 评论(0) 推荐(0)
摘要: 前言 本文记录在 Windows 平台下,使用 Visual Studio 2019 编译 Google V8 JavaScript 引擎的完整流程。由于项目需要兼容 Windows 7 系统,因此选择了较早的稳定分支 chromium-5414 (10.9-lkgr) 进行编译。 说明 除参考本文 阅读全文
posted @ 2024-04-12 15:35 倚剑问天 阅读(787) 评论(0) 推荐(0)
摘要: Visual Studio 2010 授权修改 阅读全文
posted @ 2024-01-14 23:17 倚剑问天 阅读(81) 评论(0) 推荐(0)
摘要: 某居客页面爬虫脚本,支持2023版本 阅读全文
posted @ 2023-12-26 11:06 倚剑问天 阅读(51) 评论(0) 推荐(0)
摘要: 下列提出两种获取对象名的方式 通过_OBJECT_TYPE::Name获取对象名称,通过_OBJECT_TYPE::Index获取对象索引; 通过NtQueryObject的方式获取,r0与r3通用,代码如下: #include <cstdio> #include <cstdlib> #includ 阅读全文
posted @ 2023-11-29 16:25 倚剑问天 阅读(227) 评论(0) 推荐(0)
摘要: 多核处理器同步函数KiIpiGenericCall函数在XP SP3下的寻址方式 阅读全文
posted @ 2022-04-11 00:38 倚剑问天 阅读(890) 评论(0) 推荐(0)
摘要: WH_KEYBOARD和WH_KEYBOARD_LL 键盘钩子在堆栈调用上的情况 阅读全文
posted @ 2022-04-08 03:51 倚剑问天 阅读(357) 评论(0) 推荐(0)
摘要: Clang-Format 常用命令 @echo off set CLANG_FORMAT_PATH=..\tools\clang-format\ %CLANG_FORMAT_PATH%clang-format.exe --assume-filename=.clang-format -i src/cl 阅读全文
posted @ 2022-01-24 23:43 倚剑问天 阅读(77) 评论(0) 推荐(0)