What LDC flags should be used to get the fastest executable on Windows?

Imperatorn johan_forsberg_86 at hotmail.com
Fri Mar 12 08:20:42 UTC 2021


On Thursday, 11 March 2021 at 14:54:40 UTC, Lorenso wrote:
> On Saturday, 6 March 2021 at 15:59:56 UTC, Preetpal wrote:
>> On Saturday, 6 March 2021 at 11:48:55 UTC, Imperatorn wrote:
>>> [...]
>>
>> According to the documentation 
>> (https://docs.microsoft.com/en-us/windows/win32/winmsg/lowlevelkeyboardproc) for the LowLevelKeyboardProc (the hook that my program installs), the hook is "called before the asynchronous state of the key is updated" so I cannot use GetAsyncKeyState.
>>
>> I could probably use GetKeyboardState to make the program 
>> simpler but since I fixed it, I am probably not going to 
>> change it for a while :).
>
> I love how comprehensive this is. Including the resources is 
> just brilliant. Thanks for sharing!

Generally speaking the win api is pretty complete 
documentation-wise. Many communities could actually learn from MS 
in this regard ☀️


More information about the digitalmars-d-ldc mailing list