摘要: DLL: // dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" #include <Windows.h> #include <stdio.h> INT APIENTRY DllMai 阅读全文
posted @ 2019-12-02 09:09 strive-sun 阅读(870) 评论(0) 推荐(1) 编辑
摘要: 下载对应版本的 chromedriver,不知道版本的请参考: https://stackoverflow.com/a/55266105/11128312 接下来将下载的 chromedriver.exe 放到 python 文件下 如图: 后面就可以在 cmd.exe 里面尽情发挥了 最小的例子: 阅读全文
posted @ 2019-11-22 15:20 strive-sun 阅读(5371) 评论(0) 推荐(2) 编辑
摘要: 今天稍微熟悉了一点汇编语法,并就一个案例试验了一下 VS里常见的汇编指令请见:https://blog.csdn.net/sinat_27382047/article/details/72810788 我就目前一个api做解释 CaptureStackBackTrace: 通过在堆栈上走动并记录每一 阅读全文
posted @ 2019-11-20 15:13 strive-sun 阅读(561) 评论(0) 推荐(0) 编辑
摘要: #include <Windows.h> #include <string> #include "Shobjidl.h" int main() { std::wstring x = L"C:\\Users\\strives\\Desktop\\ScreenShot\\panda.png"; HRES 阅读全文
posted @ 2019-11-20 09:56 strive-sun 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 有.rc文件,其中包含用于exe文件详细信息的版本,说明等。 如何获得在代码内使用的值?例如,要获取ProductName。 IDI_ICON1 ICON DISCARDABLE "abc-logo.ico" #if defined(UNDER_CE) #include <winbase.h> #e 阅读全文
posted @ 2019-11-13 16:05 strive-sun 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 今天在论坛看见关于指针使用的讨论,原帖:https://bbs.csdn.net/topics/394991693 我整理一下他们所说的几种方法,可能涉及到内存泄漏 case 1: #include <stdlib.h> #include <stdio.h> int *min(int x, int 阅读全文
posted @ 2019-11-12 09:33 strive-sun 阅读(171) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <stdio.h> #include <WINDOWS.H> #include <shellapi.h> #include <gdiplus.h> #include <Shlwapi.h> #pragma comment (lib,"Shlw 阅读全文
posted @ 2019-11-11 16:22 strive-sun 阅读(789) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h> #include <gdiplus.h> HBITMAP LoadBitmapFromResource(DWORD ResourceID, bool transparent = true) { HANDLE hGlobal = NULL; ULONG_PTR 阅读全文
posted @ 2019-11-08 14:24 strive-sun 阅读(1929) 评论(0) 推荐(0) 编辑
摘要: HDC hdc, hdcTemp; RECT rect; BYTE* bitPointer; int x, y; int red, green, blue, alpha; while(true) { hdc = GetDC(HWND_DESKTOP); GetWindowRect(hWND_Desk 阅读全文
posted @ 2019-11-08 09:49 strive-sun 阅读(977) 评论(0) 推荐(0) 编辑
摘要: include <Windows.h> #include <iostream> int main() { HANDLE handle = CreateFile(L"OneNote", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE 阅读全文
posted @ 2019-11-07 18:11 strive-sun 阅读(1794) 评论(0) 推荐(0) 编辑