随笔分类 - c++
摘要:GameCheat 如果你的目标程序是x86/x64, 那么当前程序也需要编译为x84/x64 #include <iostream> #include <string> #include <vector> #include <regex> #include "GameCheatEx.h" usin
阅读全文
摘要:https://github.com/januwA/GameCheat #include "pch.h" #include <iostream> #include <Windows.h> #include "GameCheat.h" using namespace std; struct Regs
阅读全文
摘要:https://github.com/januwA/GameCheat #include "pch.h" #include <iostream> #include <Windows.h> #include "GameCheat.h" using namespace std; void __stdca
阅读全文
摘要:#include <QtCore> #include <QTimer> QTimer *timer; timer = new QTimer(this); connect(timer, SIGNAL(timeout()), this, SLOT(exit_timeout())); // 1s后执行一次
阅读全文
摘要:qdatetime doc 获取当前时间 QDateTime t1 = QDateTime::currentDateTime(); qDebug() << t1.toString("yyyy-MM-dd hh:mm:ss"); string to QDateTime QDateTime t1 = Q
阅读全文
摘要:#include <iostream> #include <Windows.h> #pragma comment(lib, "user32.lib") #pragma comment(lib, "advapi32.lib") int main() { // https://docs.microsof
阅读全文
摘要:wchar_t to char #include <comdef.h> const wchar_t* exepath = L"d:\\中文 路径\\中文 路径.exe"; _bstr_t b(exepath); const char* c = b; printf("%s\n", c); MultiB
阅读全文
摘要:注意看备注 https://docs.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-getmodulefilenameexa #include <iostream> #include <Windows.h> #include <TlHelp
阅读全文
摘要:#include <iostream> #include <Windows.h> using namespace std; int main() { EnumWindows([](HWND hwnd, LPARAM lParam) { DWORD pid = 0; GetWindowThreadPr
阅读全文
摘要:http://www.cplusplus.com/reference/regex/regex_replace/ #include <iostream> #include <regex> using namespace std; string mask = " 01 02 03 ?? ?? 0? 2?
阅读全文
摘要:测试环境是x86 main #include <iostream> #include <Windows.h> #include <TlHelp32.h> #include <string.h> using namespace std; const string processName = "game
阅读全文
摘要:#include <iostream> #include <Windows.h> #include <TlHelp32.h> using namespace std; typedef int(__stdcall* FUN1)(); FUN1 fun1; int main() { BYTE* newm
阅读全文
摘要:int MyPlayTread2(const char* name) { cout << name << endl; return 0; } string s = "string"; s += " suo"; char* a = new char[s.size() + 1]; a[s.size()]
阅读全文
摘要:Pointers 在getchar处断点,断点后,调试->窗口->反汇编 查看数据 main #include <iostream> #include <Windows.h> /* Player : object Name : string Health : integer Coins : inte
阅读全文
摘要:类似CE的read/writeIntger函数(外部) 完整版项目在这里 #include <iostream> #include <Windows.h> #include <TlHelp32.h> #include <vector> #include <regex> #include <sstre
阅读全文
摘要:#include <string> #include <vector> #include <regex> struct SplitListItem { std::string key; std::string value; }; std::vector<SplitListItem> splitStr
阅读全文
摘要:有些窗口标题中含有中文,可能识别不出来,可以改一下 SetWindowTextW GetWindowTextW 设置: SetWindowTextW( (HWND)0x00370868/*窗口句柄*/, L"newTitle123231"/*新标题*/ ); 获取: int GetWindowTex
阅读全文
摘要:导入库 pro win32:LIBS += -lpsapi win32:LIBS += -lkernel32 获取列表 #include "mainwindow.h" #include "ui_mainwindow.h" #include <windows.h> #include <QtDebug>
阅读全文
摘要:"原文" 1. 将所需的库添加到您的qmake项目(.PRO文件) 2.在代码中包含所需的头文件。 3. 在程序开始时注册热键 ok...
阅读全文
摘要:int lpdwProcessId; int id = GetWindowThreadProcessId((HWND)0x707d6, (LPDWORD)&lpdwProcessId); qDebug() << lpdwProcessId; // 进程ID qDebug() << id; // 线程
阅读全文

浙公网安备 33010602011771号