code_junkie

Sending an arbitrary Signal in Windows?

Nov 11th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #define WM_MYMSG ( WM_USER+0x100 )
  2. HWND h = ::FindWindow(NULL,_T("Win32App"));
  3. if (h) {
  4. ::PostMessage(h, WM_MYMSG, 0, 0);
  5. }
Add Comment
Please, Sign In to add comment