Name
AttachThreadInput
Synopsis
Forces multiple threads to receive messages from a single message queue:
Private Declare Function AttachThreadInput Lib "user32" _ Alias "AttachThreadInput" _ (ByVal idAttach As Long, _ ByVal idAttachTo As Long, _\ ByVal fAttach As Long) As Long
Parameters
-
idAttach
The thread ID of the thread to be attached to another thread’s message queue.
-
idAttachTo
The thread ID of the thread containing the message queue to which the thread specified by
idAttach
is attached.-
fAttach
True
specifies to attach the two threads;False
specifies to detach the two threads.
Return Value
0 indicates that the function failed; any other value indicates success.
Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.