node-win32-api icon indicating copy to clipboard operation
node-win32-api copied to clipboard

SendMessageW stalls entire node app

Open laztheripper opened this issue 2 years ago • 1 comments

If the target process is unable to handle the message, which always happens eventually either when the target isn't controlled by you, or the system is under load, or the target has crashed - the sending node app will then wait infinitely for SendMessageW to return, and it never does.

I went through win32-api's src and SendMessageTimeoutW is missing, if time permits I would very much appreciate if someone added it, because it would solve exactly these issues in a very critical part of my stack.

Also willing to pay a bounty for whoever adds it!

Thank you

laztheripper avatar Sep 21 '23 12:09 laztheripper

added user32.SendMessageTimeoutW(), not test

waitingsong avatar Jun 14 '24 04:06 waitingsong