winapi

  1. D

    Can't open Windows Named Pipe for writing?

    I don't understand why I can't even open a named pipe for writing that I created in another process. I get the error The writer (client): #include "Windows.h" #include <stdio.h> #include <errno.h> int main() { HANDLE hpipe; DWORD written; char msg[] = "play asdf.wav"; hpipe...
  2. S

    Discover & Report Windows Version Info from C program

    We had a project built for Win2K, then WinXP, then Win7 that has now been converted from a 32-bit Win7 program using VS2010 to a 64-bit Win10 program using VS2017. The VS2017 project was created from scratch and the old sources where then imported and updated as needed. When I created the new...
  3. M

    How to keep a user process running until Windows logoff is definite?

    I have an application that is running on Windows, in the user's session, that I don't want the user to be able to close by accident. One way the user can close it is by having unsaved data (e.g. in notepad) and start the process of logging off. Notepad rejects the WM_QUERYSESSION message...
  4. J

    Timer time-out reset

    I use a timer to draw animations, but I want the speed of the animation to change upon user input. On the API's documentation, I read: I understood that I am supposed to call the SetTimer() function without the hWnd parameter to reset the timer, and so I did: //function declaration void...
Top