Obtains an NTXHANDLE that corresponds to an RTHANDLE. See Handle conversion.
NTXHANDLE ntxImportRtHandle( RTHANDLE IncomingObject, NTXHANDLE hObjectSource );
IncomingObject
hObjectSource
NTX_BAD_NTXHANDLE
E_EXIST 0x0006
E_LOCATION
// Receive the RTHANDLE via a mail box operation
int cnt = ntxReceiveRtData(hMailBoxA,pMessage,dwWait);
// Convert the received RTHANDLE into an NTXHANDLE
NTXHANDLE retMbx = ntxImportRtHandle(pMessage, hMailBoxA);
if( NTX_TYPE_MAILBOX != ntxGetType(retMbx)) PrintError;
ntxSendRtData(retMbx,&ret,sizeof(ret));
Object directories and object mailboxes are converted automatically. This call is provided to convert an RTHANDLE passed as data into an NTXHANDLE. See ntxReceiveRtHandle using an Object Mailbox as an alternative.
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 |