会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一叶扁舟
2019.08.23 慢慢积累,总会变强大的 2024.07.09 温故而知新 可以为师矣
博客园
首页
新随笔
联系
管理
上一页
1
···
24
25
26
27
28
29
30
31
32
···
39
下一页
2020年6月23日
win32-制作mini dump文件
摘要: 一个完整的用户模式dump是基本的用户模式转储文件。 此转储文件包括进程的整个内存空间,程序的可执行映像本身,句柄表以及其他信息,这些信息对于调试器在重建转储发生时正在使用的内存中很有用。 可以将完整的用户模式转储文件“缩小”到小型转储中。只需将转储文件加载到调试器中,然后使用.dump(创建转储文
阅读全文
posted @ 2020-06-23 16:46 strive-sun
阅读(432)
评论(0)
推荐(0)
2020年6月22日
win32-ReadProcessMemory 的使用
摘要: std::vector<std::byte> ReadBytes(PVOID address, SIZE_T length) { std::vector<std::byte> buffer(length); std::cout << "length" << buffer.size() << std:
阅读全文
posted @ 2020-06-22 15:10 strive-sun
阅读(379)
评论(0)
推荐(0)
win32-Transparent的使用
摘要: 这个api的功能主要是实现“透明” 原理: Transparent将hdc中bmp的特定颜色“透明化” #include <Windows.h> #pragma comment(lib,"Msimg32.lib") using namespace std; HBITMAP hBitmap; HBIT
阅读全文
posted @ 2020-06-22 10:18 strive-sun
阅读(450)
评论(0)
推荐(0)
2020年6月18日
win32-localtime的使用
摘要: 下面的例子用于反映本地系统的日期格式变化 // locale test #include <stdio.h> #include <locale.h> #include <time.h> #include <locale> #include <Windows.h> #pragma warning(di
阅读全文
posted @ 2020-06-18 13:50 strive-sun
阅读(589)
评论(0)
推荐(0)
2020年6月16日
win32-创建一个屏幕准星(UpdateLayeredWindow)
摘要: // Test_1.cpp : Defines the entry point for the application. // #include "framework.h" #include "Test_1.h" #include <atlimage.h> #define MAX_LOADSTRIN
阅读全文
posted @ 2020-06-16 16:20 strive-sun
阅读(1180)
评论(0)
推荐(0)
2020年6月15日
win32-使用EnumWindows比较两个窗口的Z轴
摘要: 通过使用EnumWindows()和枚举窗口来手动确定EnumChildWindows()来直接确定哪个窗口在z轴上比另一个窗口高。 struct myEnumInfo { HWND hwnd1; HWND hwnd2; HWND hwndOnTop; }; BOOL CALLBACK EnumCh
阅读全文
posted @ 2020-06-15 10:19 strive-sun
阅读(532)
评论(0)
推荐(0)
2020年6月12日
win32-使用FillRect绘制具有渐变颜色的客户区域背景
摘要: void OnEraseBkGnd(HWND hwnd) { /* Vars */ HDC dc; /* Standard Device Context; used to do the painting */ /* rect = Client Rect of the window; Temp = T
阅读全文
posted @ 2020-06-12 13:38 strive-sun
阅读(755)
评论(0)
推荐(0)
String--getline()
摘要: #include <string> #include <sstream> #include <iostream> int main() { std::wstring keyname = L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Mozilla\\Firefox"; std::w
阅读全文
posted @ 2020-06-12 10:06 strive-sun
阅读(243)
评论(0)
推荐(0)
2020年6月10日
win32-使用GDI+缩放图像
摘要: 滑动鼠标滚轮可以改变图像大小 #include <windows.h> #include <tchar.h> #include <Urlmon.h> // URLDownloadToCacheFile #pragma comment (lib, "Urlmon") #include <shlwapi
阅读全文
posted @ 2020-06-10 11:01 strive-sun
阅读(764)
评论(0)
推荐(0)
win32-LPCSTR->String
摘要: #include <string> void makebox(LPCSTR name) { std::string res(name); res += " is X"; ::MessageBoxA(nullptr, res.c_str(), res.c_str(), MB_OK); }
阅读全文
posted @ 2020-06-10 09:43 strive-sun
阅读(218)
评论(0)
推荐(0)
上一页
1
···
24
25
26
27
28
29
30
31
32
···
39
下一页
公告