Sends an RT object handle to a mailbox created to pass RT objects, and enables a thread to request acknowledgment from the receiving thread.
When you send a message:
BOOLEAN SendRtHandle(
RTHANDLE hMailbox, // handle for object Mailbox
RTHANDLE hObject, // handle for any RT object
RTHANDLE hResponse // handle for response mailbox or semaphore
);
hMailbox
hObject
hResponse
hResponse, if non-null, must be a handle for a local object, and not a reference. If there are threads in the thread queue at the mailbox, the thread at the head of the queue is awakened and is given the RT handle. Otherwise, the RT handle is placed at the tail of the object queue of the mailbox.
The sending thread has the option of specifying a mailbox or semaphore at which to wait for a response from the receiving thread.
TRUE
FALSE
E_OK 0x0000
E_MEM 0x0002
E_CONTEXT 0x0005
hResponse is a reference to an object and not a local object.
E_EXIST 0x0006
hMailbox, hObject, or hResponse.
E_TYPE 0x8002
hMailbox must be an object mailbox
hResponse must be a mailbox, semaphore, or NULL. E_INVALID_ADDRESS 0x00E2
| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |