Sends a message from a port to a service. If the port is connected, or an address parameter is supplied, the message is sent to a remote port, if the service supports this feature.
Use this call to send a message to a service without expecting a reply. You must specify a valid pointer to some control information, even if the service or your application does not use the information. You can optionally provide a pointer and length for a data component. If you do, specify whether the data is in a single buffer or a list using the flags parameter, unless the NOTIFY_ALWAYS transmission flag is set.
You can specify that the message transmission be synchronous or asynchronous. If synchronous, this call does not return until the transmission is complete. If asynchronous, the call returns as soon as the message has been scheduled for transmission by the service. If an asynchronous transmission subsequently fails, a status message is returned to the originating port. No status message is returned if the transmission was successful.
A message will be rejected if the number of transactions being processed by the port would become greater than the number specified when the port was created.
NTXXID ntxSendRtMessage( NTXHANDLE hPort, LPGENADDR pAddress, LPBYTE pControl, DWORD dwControlLength, LPVOID pData, DWORD dwDataSize, DWORD dwTransmissionFlags );
hPort
pAddress
pControl
dwControlLength
pData
dwDataSize
dwTransmissionFlags
BAD_TRANSACTION_ID
E_OK 0x0000
E_CONTEXT 0x0005
E_EXIST 0x0006
E_NOT_CONFIGURED 0x0008
E_TRANSMISSION 0x000B
E_INVALID_ADDR 0x00E2
E_RESOURCE_LIMIT 0x00E6
E_DISCONNECTED 0x00E9
E_TRANS_LIMIT 0x00EA
E_UNBOUND 0x00EB
E_TYPE 0x8002
E_PARAM 0x8004
E_NUC_BAD_BUF 0x80E2
E_LOCATION
E_NTX_INTERNAL_ERROR
Note: Other status values may be generated by the service-specific SendMessage handler.
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 |