Using winim 1.2.0 gives the following error:
nim c .\console.nim C:\Users\ben\.nimble\pkgs\winim-1.2.0\winim\winapi.nim(15620, 42) Error: type mismatch: got (int32) but expected 'uint16' Run
nim c .\console.nim C:\Users\ben\.nimble\pkgs\winim-1.2.0\winim\winapi.nim(15620, 42) Error: type mismatch: got (int32) but expected 'uint16'
This still used to work some incarnations of nim ago...
Replied to your issue on GitHub :)
https://github.com/khchen/winim/issues/5