ERXGetContext

Get the current assigned context.

Syntax

extern ERXeReturnCode ERXAPI ERXGetContext(
       ERX_CONTEXT_BLOCK          ERXPTR ** ppContextBlock
);

This function supports RPC clients in multithreaded environments. It is used to retrieve (thread-safe) RPC and broker context information, which was supplied by a preceding ERXSetContext call. See Programming multithreaded RPC clients.

For information on the messages, see Messages and codes.

Parameters

ppContextBlock

in out: Pointer to context block, see ERX_CONTEXT_BLOCK

Return codes

Table 1. Return codes
Value Meaning
00000000 ERX_S_SUCCESS
00010008 ERX_E_NOT_REGISTERED

Related function: ERXSetContext