Mercurial > libanimone
comparison src/win/win32.cc @ 5:6d6d2b51517b
chore: merge
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Fri, 12 Apr 2024 05:23:45 -0400 |
parents | aa55bcfb5b79 |
children | 27b988a1048c |
comparison
equal
deleted
inserted
replaced
4:cce3a81b03bf | 5:6d6d2b51517b |
---|---|
7 */ | 7 */ |
8 #include "animone/win/win32.h" | 8 #include "animone/win/win32.h" |
9 #include "animone.h" | 9 #include "animone.h" |
10 #include "animone/util/win32.h" | 10 #include "animone/util/win32.h" |
11 #include "animone/win.h" | 11 #include "animone/win.h" |
12 #include "animone/fd.h" | |
12 | 13 |
13 #include <set> | 14 #include <set> |
14 #include <string> | 15 #include <string> |
15 | 16 |
16 #include <windows.h> | 17 #include <windows.h> |
118 return TRUE; | 119 return TRUE; |
119 } | 120 } |
120 | 121 |
121 Process process; | 122 Process process; |
122 process.pid = GetWindowProcessId(hwnd); | 123 process.pid = GetWindowProcessId(hwnd); |
123 process.name = fd::GetProcessName(process.pid) | 124 GetProcessName(process.pid, process.name); |
124 | 125 |
125 auto& window_proc = *reinterpret_cast<window_proc_t*>(param); | 126 auto& window_proc = *reinterpret_cast<window_proc_t*>(param); |
126 if (!window_proc(process, window)) | 127 if (!window_proc(process, window)) |
127 return FALSE; | 128 return FALSE; |
128 | 129 |
129 return TRUE; | 130 return TRUE; |
130 } | 131 } |