Open HengHuH opened 4 months ago
shutdown program from lua.
Don’t use TerminateProcess , post close message to window instead
SendMessage(G.hWnd, WM_SYSCOMMAND, SC_CLOSE, 1) after UnregisterClassW , This is a bit weird . cc @actboy168
SendMessage(G.hWnd, WM_SYSCOMMAND, SC_CLOSE, 1)
UnregisterClassW
shutdown program from lua.