Receives handles from an object mailbox.
Visual Basic:
Function ntxReceiveRtHandle( ByVal hMailbox As Integer, ByVal dwMilliseconds As Integer) As Integer Function ntxReceiveRtHandle( ByVal hMailbox As Integer, ByVal dwMilliseconds As Integer, ByRef phResponse As Integer) As Integer
Visual C#:
Int32 ntxReceiveRtHandle ( Int32 hMailbox, Int32 dwMilliseconds, ref Int32 phResponse ); Int32 ntxReceiveRtHandle ( Int32 hMailbox, Int32 dwMilliseconds );
hMailbox
dwMilliseconds
NTX_NO_WAIT |
The thread does not wait. |
NTX_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. |
phResponse
The handle received from the object mailbox.
E_TIME
dwMilliseconds
elapsed before the thread got the desired handle. E_EXIST
hMailbox
is not a handle for an existing object.
E_TYPE
hMailbox
is not an object mailbox.
E_NTX_INTERNAL_ERROR
Versions | Reference |
---|---|
INtime 3.0 | INtimeDotNet |
INtimeDotNet system calls, Mailbox system calls, high-level ticks