June 2001
Intermediate to advanced
706 pages
24h 10m
English
PostThreadMessage
This function uses the actual thread ID to determine which message queue is to receive the message. This function also does not wait for a response to the posted message. This function is defined as follows:
Public Declare Function PostThreadMessage Lib "user32" _
Alias "PostThreadMessageA" _
(ByVal idThread As Long, ByVal msg As Long, _
ByVal wParam As Long, ByVal lParam As Long) As LongidThread
The thread identifier that the message is posted to. You can determine this value using the Visual Basic App.ThreadID method, or by using either of the GetCurrentThreadID or GetWindowThreadProcessId API functions.
uMsg
The message identifier.
lParam
The second parameter of the message.
wParam
The first parameter of the message.
The return value is nonzero if the function succeeded in posting the message; otherwise, returns a zero value.
Read now
Unlock full access