winapi

About this tag
The winapi tag on WindowsForum.com covers discussions about the Windows API (WinAPI) for native Windows application development. Topics include troubleshooting specific WinAPI functions like PeekMessage() and WM_KEYDOWN message handling, as well as general usage of WinAPI and MFC in C/C++ programming with Visual Studio. Users share code snippets, seek help with message loops and multithreading, and discuss best practices for Windows program development. The tag is relevant for developers working with low-level Windows APIs, message processing, and thread synchronization.
  1. Alex Sokolek

    Windows 11 PeekMessage() not returning WM_KEYDOWN message

    Hi. I'm having trouble with PeekMessage(). I use PeekMessage() in a loop inside my WM_PAINT procedure to consume messages generated during a long computation process, and to allow the user to abort the process by pressing ESCAPE. Here is a snippet of my code... ... Create several threads to do...
  2. Alex Sokolek

    New user query

    Hi. I'm a retired computer/electronics engineer with 45 years of experience supporting Windows, Unix, Oracle, and networks of hand-held computers. I write straight C/C++, mostly using the WinAPI, but also MFC. I dabble with Visual Studio writing Windows programs, and I would like to share them...
Back
Top