摘要: #include "base/strings/utf_string_conversions.h" #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/351564777): Remove this and convert code to safer const 阅读全文
posted @ 2025-09-23 09:17 吱吱的笔记 阅读(22) 评论(0) 推荐(0)
摘要: 使用DIA接口获取符号的偏移地址 #include <windows.h> // DIA headers must come after windows headers. #ifdef __clang__ #pragma clang diagnostic push #pragma clang dia 阅读全文
posted @ 2025-09-08 18:53 吱吱的笔记 阅读(13) 评论(0) 推荐(0)
摘要: #include <atlbase.h> #include <atlwin.h> #include <d2d1.h> #include <d2d1effects.h> #include <dwmapi.h> #include <shellscalingapi.h> #pragma comment(l 阅读全文
posted @ 2025-08-06 14:06 吱吱的笔记 阅读(28) 评论(0) 推荐(0)
摘要: #include <atlbase.h> #include <atlwin.h> #include <shellscalingapi.h> #include <dwmapi.h> #pragma comment(lib, "dwmapi.lib") #pragma comment(lib, "Shc 阅读全文
posted @ 2025-08-06 10:36 吱吱的笔记 阅读(36) 评论(0) 推荐(0)
摘要: //////////////////////////////////////////////////////////////////////////////// // foo.h class Base; void Hello(const Base* base); void Hello(const v 阅读全文
posted @ 2025-08-01 14:58 吱吱的笔记 阅读(9) 评论(0) 推荐(0)
摘要: 使用vscode + lldb-dap 调试鸿蒙的Native代码 背景 鸿蒙的官方开发环境DevEco Studio调试NDK程序已经够用,但是调试大的项目如chromium经常的卡死和掉线,还有就是不能调试子进程,这就需要寻找一个其他的方法。 环境 系统环境:Win10 构建环境:wsl2 代码 阅读全文
posted @ 2025-07-04 11:19 吱吱的笔记 阅读(388) 评论(0) 推荐(0)
摘要: #define _CRT_SECURE_NO_WARNINGS #include <windows.h> #include <assert.h> #include <stdio.h> #include <time.h> #include <pshpack1.h> struct JmpThunk { 阅读全文
posted @ 2025-06-25 14:30 吱吱的笔记 阅读(16) 评论(0) 推荐(0)
摘要: .386 .model FLAT .data EXTERN _Kita_WakeByAddressAll@4:NEAR PUBLIC __impl__WakeByAddressAll@4 __impl__WakeByAddressAll@4 dd _Kita_WakeByAddressAll@4 . 阅读全文
posted @ 2025-06-25 10:12 吱吱的笔记 阅读(10) 评论(0) 推荐(0)
摘要: #define _CRT_SECURE_NO_WARNINGS #include <windows.h> #include <assert.h> #include <stdio.h> #include <time.h> #include <pshpack1.h> struct JmpThunk { 阅读全文
posted @ 2025-06-25 10:09 吱吱的笔记 阅读(16) 评论(0) 推荐(0)
摘要: C/C++全局静态变量初始化 C/C++代码中经常会使用到全局变量和静态变量,很多时候大家搞不清楚全局变量和静态变量的初始化。本文的目的是探讨一下全局变量和静态变量的初始化的几种情况和一些危险的未定义行为。 全局变量 全局变量的定义有以下几种情况: 定义的时候指定了初始化值 定义的时候未指定初始化值 阅读全文
posted @ 2025-06-20 09:12 吱吱的笔记 阅读(243) 评论(0) 推荐(0)