On Wed Nov 1 15:52:22 2023 +0000, Connor McAdams wrote:
Well, at least in this case, we could avoid calling `NtUserMessageCall` at the start of the procedure if the message is `WM_NCCREATE`, and then call it at the end of the `WM_NCCREATE` switch case instead of:
return unicode ? DefWindowProcW(hwnd, uMsg, wParam, lParam) : DefWindowProcA(hwnd, uMsg, wParam, lParam);
which would avoid a double call to `NtUserMessageCall` I presume.
I've changed this in the most recent revision to only call `NtUserMessageCall` once instead of twice in the case of `WM_NCCREATE`.