Microsoft Windows CE 3.0  

CMsg::CMsg

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.

Constructs a CMsgobject.

CMsg(
UINT
u, 
DWORD
dw, 
LPVOID
lp, C
AMEvent
*pEvent
);

Parameters

u
Request code, defined by the client of the thread class and understood by the overridden worker thread function.
dw
Flag parameter to the request code.
lp
Data required by the worker thread as parameter or return values. This data should not be stack-based, as it will be referenced some time after completing the queuing operation.
pEvent
Event object that a worker thread can signal to indicate the completion of the operation.

Return Values

No return value.

Remarks

This member function contains a request for a CMsgThreadworker thread to act on. All the parameters are passed to the worker thread function as parameters when this message gets processed. The meanings of the parameters are defined by the client function that calls the worker thread and the derived class that supplies the worker thread's execution function.