Closed anfragment closed 4 days ago
Wails isn't handling WM_ENDSESSION in its wndProc loop, which results in shutdown handlers not running on system shutdown. We can process the message ourselves by subclassing Wails's wndProc via SetWindowLongPtrW.
Description
Wails isn't handling WM_ENDSESSION in its wndProc loop, which results in shutdown handlers not running on system shutdown. We can process the message ourselves by subclassing Wails's wndProc via SetWindowLongPtrW.