Microsoft Windows CE 3.0  

CMsgThread::PutThreadMsg

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Queues a request for execution by the worker thread.

void
PutThreadMsg(
UINT
uMsg
,
DWORD
dwMsgFlags
,
LPVOID
lpMsgParam
,
CAMEvent
*pEvent
=
NULL
);

Parameters

uMsg
Request code.
dwMsgFlags
Optional flags parameter.
lpMsgParam
Optional pointer to a data block containing additional parameters or return values. Must be statically or heap-allocated and not automatic.
pEvent
Optional pointer to an event object to be signaled upon completion.

Return Values

No return value.

Remarks

This member function queues a request for execution by the worker thread. The parameters of this member function will be queued (in a CMsgobject) and passed to the CMsgThread::ThreadMessageProcmember function of the worker thread. This member function returns immediately after queuing the request and does not wait for the thread to fulfill the request. The CMsgThread::ThreadMessageProcmember function of the derived class defines the four parameters.

This member function uses a multithread safe list, so multiple calls to this member function from different threads can be made safely.