04 2020 档案

摘要:使用这个api可以在指定的进程中将数据写入内存区域。 注意:以管理员权限运行,并且以x64调试。 #include <windows.h> #include <iostream> #include <tlhelp32.h> #include <psapi.h> DWORD_PTR GetProces 阅读全文
posted @ 2020-04-24 17:53 strive-sun 阅读(4083) 评论(0) 推荐(1)
摘要:// Test_CustomButton.cpp : Defines the entry point for the application. // #include "framework.h" #include "Test_CustomButton.h" #include <commctrl.h> 阅读全文
posted @ 2020-04-22 09:54 strive-sun 阅读(865) 评论(0) 推荐(0)
摘要:#include<iostream> #include<fstream> #include <string> #include<windows.h> using namespace std; #pragma pack(1) struct header { char header[2]; int32_ 阅读全文
posted @ 2020-04-16 10:26 strive-sun 阅读(357) 评论(0) 推荐(0)
摘要:import win32gui import win32ui import win32con name = "test.txt - Notepad" hwnd = win32gui.FindWindow(None, name) left, top, right, bot = win32gui.Get 阅读全文
posted @ 2020-04-14 11:39 strive-sun 阅读(1213) 评论(0) 推荐(0)
摘要:DWORD d = GetFileAttributes(path.c_str()); 根据返回的十进制,对比文件属性,来检索指定文件或目录的文件系统属性。 也可以使用 if ((d & FILE_ATTRIBUTE_ARCHIVE) == FILE_ATTRIBUTE_ARCHIVE) 来快速确定文 阅读全文
posted @ 2020-04-10 18:16 strive-sun 阅读(1397) 评论(0) 推荐(0)
摘要:#include <iostream> void exchange(int a,int b) { a = a + b; b = a - b; a = a - b; } int main() { int n1 = 1; int n1 = 2; exchange(n1,n2); std::cout<<n 阅读全文
posted @ 2020-04-10 14:22 strive-sun 阅读(236) 评论(0) 推荐(0)
摘要:分别是使用了二级指针和一级指针的两种方法,最后会按插入的顺序依次打印1,2,3,4 主要区别在于,使用二级指针,可以在main函数里直接用一个空的Node指针,而一级指针是在main函数里面先添加了一个空的头结点 因为二级指针是传的指针的指针,所以main函数里直接用Node *head = NUL 阅读全文
posted @ 2020-04-10 14:07 strive-sun 阅读(691) 评论(0) 推荐(0)
摘要:创建三个空结点,通过next的指针,将三个结点的地址串联在一起,变成一个单链表 #include <iostream> using namespace std; struct Node { int data; Node* next; }; void printList(Node* n) { whil 阅读全文
posted @ 2020-04-09 10:46 strive-sun 阅读(124) 评论(0) 推荐(0)
摘要:#include <Windows.h> #include <iostream> #include <string> static BOOL CALLBACK enumchildWindowCallback(HWND hWnd, LPARAM lparam) { int length = GetWi 阅读全文
posted @ 2020-04-07 15:47 strive-sun 阅读(3655) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <tchar.h> int main(void) { WIN32_FIND_DATA File; HANDLE hSearch; TCHAR SourcePath 阅读全文
posted @ 2020-04-07 15:40 strive-sun 阅读(983) 评论(3) 推荐(0)
摘要:#include <Windows.h> #include <iostream> using namespace std; HHOOK keyboardHook; LRESULT __stdcall KEYHookCallback(int nCode, WPARAM wParam, LPARAM l 阅读全文
posted @ 2020-04-03 16:05 strive-sun 阅读(260) 评论(0) 推荐(0)