摘要: #include <iostream> #include <stdio.h> using namespace std; char *_strcpy(char* des, char* src) { if (des == NULL || src == NULL) { return 0; } // cou 阅读全文
posted @ 2020-03-18 18:13 strive-sun 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 第一种,依托WMI #define _WIN32_DCOM #include <iostream> using namespace std; #include <comdef.h> #include <Wbemidl.h> # pragma comment(lib, "wbemuuid.lib") 阅读全文
posted @ 2020-03-18 11:21 strive-sun 阅读(7767) 评论(2) 推荐(1) 编辑
摘要: .py import win32api, win32con, win32gui import win32gui_struct import ctypes from ctypes import * GUID_DEVINTERFACE_USB_DEVICE = "{A5DCBF10-6530-11D2- 阅读全文
posted @ 2020-03-18 11:16 strive-sun 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: 在添加第三方库的时候需要注意放置的路径,注意区分x86和x64的文件夹路径以及VS的版本,不要放错了 lib的位置:(需要先将lib放到该路径下,不然会说找不到.lib)C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um dll的位置 阅读全文
posted @ 2020-03-18 10:46 strive-sun 阅读(1265) 评论(0) 推荐(0) 编辑