[host] windows: use event to gracefully signal exit

This allows the process to be terminated without resorting to
TerminateProcess. With some fixes, this allows the notification icon to be
removed when the service is restarted.

Furthermore, instead of sending WM_DESTROY to fool the window into believing
it's being destroyed, we actually call DestroyWindow now.
This commit is contained in:
Quantum
2021-07-19 06:16:27 -04:00
committed by Geoffrey McRae
parent a4f5ce08b9
commit 16ee1a825c
3 changed files with 110 additions and 10 deletions

View File

@@ -28,6 +28,7 @@ target_link_libraries(platform_Windows
psapi
shlwapi
powrprof
rpcrt4
)
target_include_directories(platform_Windows