Obtain the message id associated with this message.
argument informationstatus = PMDF_get_message_id
(dq_context, message_id, message_id_len)
| Argument | Data type | Access | Mechanism |
|---|---|---|---|
| dq_context | context pointer | read/write | reference |
| message_id | descriptor | read/write | reference |
| message_id_len | unsigned word | write | reference |
argument informationstatus = PMDFgetMessageId
(dq_context, message_id, message_id_len)
int PMDFgetMessageId (dq_context, message_id,
message_id_len)
PMDF_dq **dq_context;
char *message;
int *message_id_len;
dq_context
A message dequeue context created with PMDF_dequeue_initialize.message_id
String to receive the message's message id. Length must be at least ALFA_SIZE bytes. (ALFA_SIZE+1 bytes for PMDFgetMessageId.)message_id_len
Length in bytes of the message id. Callers using PMDFgetMessageId must, on input, supply the maximum length in bytes of message_id.
The PMDF_get_message_id routine provides ready access to a message's message id. Note that the message id may also be obtained by reading and parsing the message's header. However, for efficiency purposes, PMDF stores a copy of the message id in the message envelope. This routine provides access to that envelope copy.Return Values
| PMDF__OK | Normal, successful completion. |
| PMDF__BADCONTEXT | Illegal or corrupt context. No message id retrieved. |
| PMDF__FATERRLIB | Call to LIB$SCOPY_R_DX failed owing to a fatal internal error in the OpenVMS Run Time Library. No message id retrieved. |
| PMDF__INSVIRMEM | Insufficient virtual memory: call to LIB$GET_VM made by LIB$SCOPY_R_DX has failed. No message id retrieved. |
| PMDF__INVSTRDES | Invalid string descriptor for message_id: descriptor has an invalid value in its DSC$B_CLASS field. No message id retrieved. |
| PMDF__STRTRU | Supplied string was too long; value truncated to fit. |