摘要: 下列提出两种获取对象名的方式 通过_OBJECT_TYPE::Name获取对象名称,通过_OBJECT_TYPE::Index获取对象索引; 通过NtQueryObject的方式获取,r0与r3通用,代码如下: #include <cstdio> #include <cstdlib> #includ 阅读全文
posted @ 2023-11-29 16:25 倚剑问天 阅读(118) 评论(0) 推荐(0)
摘要: 代码 #!/usr/bin/env python # encoding: utf-8 import os import binascii from datetime import datetime, timezone colnum_per_row = 16 file_path = 'demo.sys 阅读全文
posted @ 2025-03-20 00:54 倚剑问天 阅读(9) 评论(0) 推荐(0)
摘要: 前言 boost版本:boost_1_70_0 编译器选择:msvc14.41 参考文章:https://blog.csdn.net/ljjjjjjjjjjj/article/details/122312270 步骤 确认你的msvc编译器版本和对应cl.exe的路径,我的方法是在Everythin 阅读全文
posted @ 2024-11-15 16:41 倚剑问天 阅读(431) 评论(0) 推荐(0)
摘要: 简介 如果在我们windows的pc机器上,有需要使用多个git账号ssh-key的需求,可以按照如下步骤进行配置。 参考资料 一台电脑配置多个GitHub/GitLab帐号的SSH Key切换 步骤 我们需要创建两个git的ssh-key,在git bash命令行中执行下列语句,默认会在C:\用户 阅读全文
posted @ 2024-10-29 19:32 倚剑问天 阅读(70) 评论(0) 推荐(0)
摘要: 代码 #include <windows.h> #include <Psapi.h> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include < 阅读全文
posted @ 2024-09-20 10:36 倚剑问天 阅读(222) 评论(0) 推荐(0)
摘要: 代码 // 单精度转半精度 unsigned short cpu_float2half(float f) { unsigned short ret; unsigned x = *((int*)(void*)(&f)); unsigned u = (x & 0x7fffffff), remainder 阅读全文
posted @ 2024-09-18 17:01 倚剑问天 阅读(100) 评论(0) 推荐(0)
摘要: 通用工程模板 1. 输出目录:(ProjectDir)..\output\$(ProjectName)\$(Platform)_(Configuration)\ 2. 中间目录:(ProjectDir)..\output\$(ProjectName)\$(Platform)_(Configu 阅读全文
posted @ 2024-09-04 23:13 倚剑问天 阅读(42) 评论(0) 推荐(0)
摘要: 前言 处于某些研究目的,我们经常需要在dx11绘制的界面上绘制我们自己的操作菜单,以方便进行一些可视化操作;这里面imgui库因为其优越的可用性,健壮性和美观性,得到了很多人的青睐。那么我们应该如何在一个带有dx的软件界面上利用imgui绘制我们自己的界面呢?下面的代码就是为了解决这个问题的(采用d 阅读全文
posted @ 2024-07-20 17:06 倚剑问天 阅读(167) 评论(0) 推荐(0)
摘要: 代码样例 #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <conio.h> #include <string> #include <vector> #include <map> 阅读全文
posted @ 2024-07-08 15:26 倚剑问天 阅读(38) 评论(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 倚剑问天 阅读(152) 评论(0) 推荐(0)
摘要: 前言 写这篇文章的目的是Luabind这个库比较老旧,对于新编译器需要做一些代码上的兼容,参考资料又都有点过时,所以特写此篇,记录踩坑过程; Luabind库使用了大量boost header-only相关的头文件,导致你的工程如果带上这个库,就需要在源码中附带上整个boost全家桶,且版本最好与你 阅读全文
posted @ 2024-04-16 11:44 倚剑问天 阅读(184) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示