- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 c++ 获取窗口的控件
HWND handle = GetForegroundWindow();GetFilePath(handle,_T("ImageCombo"));void GetFilePath(HWND hParentWindow,LPCTSTR lpClassName){ HWND hRet = NULL; HWND hFind = NULL; wchar_t path[256] = {0}; while ((hFind = ::FindWindowEx(hParentWindow,hFind
2021-04-28 15:03:02 1758
原创 获取计算机移动设备的信息
//遍历系统盘,找到移动设备void GETUsbList(){ HANDLE hDevice; // handle to the drive to be examined BOOL result; // results flag DWORD readed; // discard results STORAGE_DESCRIPTOR_HEADER *pDevDescHeader; STORAGE_
2021-04-15 14:00:56 234
原创 c++ 监听打印机动作
c++ 监听打印机动作可以监听多个打印机WORD JobFields[] = { JOB_NOTIFY_FIELD_DOCUMENT, JOB_NOTIFY_FIELD_USER_NAME, JOB_NOTIFY_FIELD_MACHINE_NAME, JOB_NOTIFY_FIELD_PRINTER_NAME, JOB_NOTIFY_FIELD_STATUS, JOB_NOTIFY_FIELD_START_TIME, JOB_NOTIFY_FIELD_TOTAL_PAGE
2021-02-20 14:02:25 1243 1
原创 C++ IUIAutomation获取微信消息
C++ IUIAutomation获取微信消息前言直接上代码代码如下(示例):#include "stdafx.h"using namespace std;HWND g_hwd=NULL;int _tmain(int argc, _TCHAR* argv[]){ CoInitialize(NULL); while(1) { g_hwd = FindWindow(_T("WeChatMainWndForPC"),_T("微信")); //获取微信窗口的句柄 if (g_
2021-01-08 13:32:51 3428 2
空空如也
gtk 菜单的每一项怎么在前面加上图标
2021-07-15
TA创建的收藏夹 TA关注的收藏夹
TA关注的人