title: In Windows API programming how do I prevent mouse from leaving window?
body: <p>How do I limit mouse to one particular <code>HWND</code> in Win32 API programming? This <code>HWND</code> is not necessarily created by me. It could be a browser window, or photoshop program window. I'm trying to write a program that doesn't let mouse leave particular Windows program. I can get <code>HWND</code> of the program by <code>GetWindowText</code>.</p>