摘要:
我们使用WH_KEYBOARD来禁用记事本的ALT的按键 .cpp #include <Windows.h> #include <stdio.h> #include <tchar.h> unsigned long GetTargetThreadIdFromWindow(const char* cla 阅读全文
posted @ 2020-05-15 10:13
strive-sun
阅读(833)
评论(0)
推荐(0)
摘要:
SetupDiSetClassInstallParams函数一般是用来禁用/启用某个设备 比如我们可以禁用网络适配器 /* for Devpkey */ #define INITGUID /* dependencies */ #pragma comment (lib, "SetupAPI") #in 阅读全文
posted @ 2020-05-15 10:00
strive-sun
阅读(1375)
评论(0)
推荐(0)
摘要:
从编辑框中获取控件文本 一般常用的方法是, wchar_t buffer[100]; GetWindowText(hWnd, buffer, sizeof(buffer) / sizeof(buffer[0])); 但是这样浪费了数组空间, 所以一般使用GetWindowTextLengthW获取控 阅读全文
posted @ 2020-05-15 09:50
strive-sun
阅读(1410)
评论(0)
推荐(0)

浙公网安备 33010602011771号