上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 39 下一页
摘要: 一个完整的用户模式dump是基本的用户模式转储文件。 此转储文件包括进程的整个内存空间,程序的可执行映像本身,句柄表以及其他信息,这些信息对于调试器在重建转储发生时正在使用的内存中很有用。 可以将完整的用户模式转储文件“缩小”到小型转储中。只需将转储文件加载到调试器中,然后使用.dump(创建转储文 阅读全文
posted @ 2020-06-23 16:46 strive-sun 阅读(432) 评论(0) 推荐(0)
摘要: 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)
摘要: 这个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)
摘要: 下面的例子用于反映本地系统的日期格式变化 // 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)
摘要: // 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)
摘要: 通过使用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)
摘要: 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)
摘要: #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)
摘要: 滑动鼠标滚轮可以改变图像大小 #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)
摘要: #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 下一页