Mercurial > minori
comparison dep/animone/src/win/win32.cc @ 267:09c5bd74fe93
win32: make builds work again
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 11 Apr 2024 23:39:18 -0400 |
parents | 862d0d8619f6 |
children | b1f625b0227c |
comparison
equal
deleted
inserted
replaced
266:1a6a5d3a94cd | 267:09c5bd74fe93 |
---|---|
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 } |