Waits for and then copies arbitrary data out of an RT data mailbox.
Note: If the NTX application must operate on data that contains RTHANDLEs, you must convert the handles using ntxImportRtHandle. See Handle conversion.
WORD ntxReceiveRtData(
NTXHANDLE hMailbox,
LPVOID pMessage,
DWORD dwMilliseconds
);
hMailbox 
pMessage 
dwMilliseconds 
NO_WAIT | 
The thread does not wait. | 
INFINITE | 
The thread waits for its request to be fully satisfied. | 
Any positive integer | 
Calling thread goes to sleep for this many milliseconds, after which it awakes. 
 Note: The kernel converts milliseconds to high-level ticks.  | 
NTX_ERROR 
E_OK 0x0000 
E_TIME 0x0001 
E_EXIST 0x0006 
hMailbox is not a handle for an existing object. 
E_TYPE 0x8002 
hMailbox is not a handle for a mailbox or the mailbox is not a data mailbox. 
E_BAD_ADDR 0x800F 
pMessage is invalid. 
E_NTX_INTERNAL_ERROR 
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.0 | intime/nt/include/ntx.h | ntx.h | ntx.lib | 
| INtime 4.01 (for 64-bit Windows) | intime/nt/include/ntx.h | ntx.h | ntx64.lib | 
Mailbox system calls, ntxImportRtHandle, Handle conversion, high-level ticks