C language function:AttachThreadInput sample codes

Search sample code in the internet.It is the result.


TITLE : Preventing Hangs in Windows Applications - “I--C/C++ OOA/D Design Pattern - CSDNq
* Share a thread's window message queue with another thread by using the AttachThreadInput() function. It is not only extremely difficult to properly synchronize access to the queue, it also can prevent the Windows operating system from properly detecting a hung window.......
http://blog.csdn.net/metasearch/article/details/21327009


TITLE : AttachThreadInput is like taking two threads and pooling their money into a joint bank account, where both parties need to be present in order to withdraw any money – The Old New Thing
AttachThreadInput(foregroundThreadId, myThreadId, TRUE);.......
http://blogs.msdn.microsoft.com/oldnewthing/20130619-00/@p=4043
TITLE : Disable bringing main installation dialog to front when installing prerequisite [Archive] - Flexera Community Forums
AttachThreadInput( GetWindowThreadProcessId( GetForegroundWindow(), NULL ), GetCurrentThreadId(), TRUE );.......
http://community.flexerasoftware.com/archive/index.php@t-206774.html
TITLE : Disable bringing main installation dialog to front when installing prerequisite [Archive] - Flexera Community Forums
AttachThreadInput( GetWindowThreadProcessId( GetForegroundWindow(), NULL ), GetCurrentThreadId(), FALSE );.......
http://community.flexerasoftware.com/archive/index.php@t-206774.html
search Google

https://www.google.com/#q=AttachThreadInput