#include <stdio.h>
#include <windows.h>
#include <commctrl.h>
int main(void)
{
/* Run through the windows until we find our listview. */
HWND hwnd = NULL;
int count, i;
char item[512] = {0}, subitem[512] = {0};
LVITEM lvi, *_lvi;
char *_item, *_subitem;
DWORD pid;
HANDLE process;
hwnd = FindWindowEx(hwnd, NULL, TEXT("CabinetWClass"), NULL);
hwnd = FindWindowEx(hwnd, NULL, TEXT("SHELLDLL_DefView"), NULL);
hwnd = FindWindowEx(hwnd, NULL, TEXT("DUIViewWndClassName"), NULL);
hwnd = FindWindowEx(hwnd, NULL, TEXT("DirectUIHWND"), NULL);
hwnd = FindWindowEx(hwnd, NULL, TEXT("CtrlNotifySink"), NULL);
hwnd = FindWindowEx(hwnd, NULL, TEXT("SysListView32"), NULL);
count=(int)SendMessage(hwnd, LVM_GETITEMCOUNT, 0, 0);
GetWindowThreadProcessId(hwnd, &pid);
process=OpenProcess(PROCESS_VM_OPERATION|PROCESS_VM_READ|
PRO
读取sysTreeview32和SysListView32
最新推荐文章于 2022-06-09 08:53:48 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)